I can use the cfx_getimage tag just fine on CF 5.0. But no luck with it on CFMX. Anyone using this tag?
As a backup plan I'm using ASP to retrieve and send to the browser but I cannot seem to get it to write the file to disk. Anybody with ASP experience that could help me out?
FILE: show.asp
<img src="">
FILE: getimage.asp
<%@ LANGUAGE="VBSCRIPT" %>
<%
' Clear out the existing HTTP header information
Response.Expires = 0
Response.Buffer = TRUE
Response.Clear
' Change the HTTP header to reflect that an image is being passed.
Response.ContentType = "image/jpg"
Set cn = Server.CreateObject("ADODB.Connection")
' The following open line assumes you have set up a System DataSource
' by the name of myDSN.
'Remember to change the following connection string parameters to reflect the correct values
'for your SQL server.
cn.Open "DSN=idx_ds1;UID=isfdvee;PWD=sdfsfved;DATABASE=MLSNHSQL"
Set rs = cn.Execute("SELECT MEDIUM_PHOTO FROM dbo.idxmls" & Request.QueryString("tbID") & " WHERE ID= " & Request.QueryString("ID"))
Response.BinaryWrite rs("MEDIUM_PHOTO")
Response.End
%>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Re: cfx_getimage on CFMX / blob images with ASP Ryan Roskilly
- Re: cfx_getimage on CFMX / blob images with ASP Ryan Roskilly