I'm new to programming and also Coldfusion. Would someone be kind to show me the code to display Blob Images. I'm getting an error "ByteArray objects cannot be converted to strings". The code that I have is as follow:
<cfquery name="getImg" datasource="#Application.dsname#">
Select id, d_busdate,d_refno,imgData from #Session.db# where id='#Session.id#'
</cfquery>
<cfif #getImg.recordCount# gt 0>
<cfoutput><img src="#toBinary(getImg.imgData)#" width="650" height="300" border="1"></img></cfoutput>
<cfquery name="getImg" datasource="#Application.dsname#">
Select id, d_busdate,d_refno,imgData from #Session.db# where id='#Session.id#'
</cfquery>
<cfif #getImg.recordCount# gt 0>
<cfoutput><img src="#toBinary(getImg.imgData)#" width="650" height="300" border="1"></img></cfoutput>