I have a query which retrieves the data from Oracle DB. The table which I am retrieving contains one BLOB type column. When I tried to output it as
<cfoutput>#query.blobColumn#</cfoutput>
Its giving me the error "ByteArray objects cannot be converted to strings". I tried using
<cfoutput>#ToString(query.blobColumn)#</cfoutput>
Then it worked, but I am getting the content as "��t�".
Is there any way we can display some text of the blob(XML file) and if user clicks on it, we can display/download the full content of it?
This is the Code i am using
<cfloop query="UpdateResult">
<tr id="dataRow">
<cfloop index="ColName" `list="#UpdateResult.ColumnList#">
<cfif isBinary(UpdateResult[ColName[UpdateResult.CurrentRow])>
<td>#CharsetEncode(UpdateResult[ColName][UpdateResult.CurrentRow], "ISO- 8859-1" ) #</td>
<cfelse>
<td>#UpdateResult[ColName][UpdateResult.CurrentRow]#</td>
</cfif>
</cfloop>
</tr>
</cfloop>`