The cfquery and the display code all go in "getimage.cfm". Try doing it something like this:
<cfquery name="QMyQuery" blah blah> SELECT blobcolumn FROM images WHERE imageid = <cfqueryparam cfsqltype="cf_sql_numeric" value="#URL.imageid#"> </cfquery> <cfcontent type="image/jpeg"><cfoutput>#ToString(QMyQuery.blobcolumn)#</cfoutput> On 12/21/05, Terry Troxel <[EMAIL PROTECTED]> wrote: > Last week I asked for help with displaying > Blob images stored in MSSQL and I was sent > A link to a blog on the subject on forta.com. > > This is the meat of the solution, but I am not > Having any luck so far. > > I have built a cfquery that grabs the blob field > But I am unable to display it. > > <!--- Set MIME type to GIF or JPEG or ... ---> > <cfcontent variable="image.imageData" ... > > This file would be saved on the server, and the URL to it > (with the image identifier passed as a URL parameter) can > now be used as an IMG SRC like this: > > <img src="/getImage.cfm?imageid=123"> > And that'll do it. -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227388 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

