Retrieving Binary/BLOB from Oracle using CF8
Hi all, I hope someone can shed some light on an issue I'm having. We've been running CF6/CF7/CF8 in succession on many different versions of Oracle. I've been storing binary files in the database and retrieving them without any issues. I've been doing it like this (a working example, pretend this is inside a cffunction):
<cfset var returnStruct = StructNew()>
<cfquery name="get" datasource="#dsn#">
SELECT doc FROM #usr#.documents WHERE doc_id=1
</cfquery>
<cfset returnStruct["document"] = get.doc>
Up until the last Oracle upgrade I could do <cfdump var=#returnStruct#> and see there is binary stored. Now, when I do a cfdump I'm getting an empty string -- not even a binary. When I run the query against the database itself I'm still getting the BLOB so it's something between CF and Oracle that isn't playing nicely. I haven't had any luck finding anyone else with this issue. I don't know the Oracle patch version (I've asked so I should know soon), but it's something recent for 11g.
If anyone has any ideas or spots what I'm doing wrong, please let me know. I've been doing it this way for many years so I'm not sure how else to do it. Thanks!
