Problems with CFIMAGE writetobrowser
Hello, all,
I've got a problem with CFIMAGE that I could use some wisdom with.
We have a page that has a query that pulls article data from a content table and it uses a LEFT OUTER JOIN to pull media (pic or video) from a media table.
When displaying the article, if there is an associated image we insert the BLOB into an ImageNew() tag, resize it, and then display it. Except it's not displaying. We just get the ALT content. Inspecting the source via browser, I can see where the CF generated IMG tag is, but there's no picture.
<cfoutput query="getarticlesbyyear">
...
<cfif photoID neq "">
<cfset myImage = imageNew("#thumbnail#") />
<cfset imageResize(myImage,"150","","bilinear",2) />
<cfimage action="writetobrowser" source="#myImage#" title="#caption#" alt="#caption#" />
</cfif>
...
</cfoutput>
This will display in View Source:
<img src="/CFFileServlet/_cf_image/_cfimg7233696009169197587.PNG" alt="{REDACTED}" title="{REDACTED}">
Any thoughts on why this isn't working greatly appreciated.
V/r,
^ _ ^
