Hi to you all.I'm trying to setting up an asp page that returns images stored in an SQL200 database as binary data [field type: image] and read by a view called "My View".In order to doing that I wrote this asp page called "photo001.asp"<%Dim IDID = Request("ID")Set conn = Server.CreateObject("ADODB.Connection")conn.Open Application("MyConnection_ConnectionString")Set rs = conn.Execute("SELECT [ID], [Photo001] FROM MyView WHERE ID = " & ID)Response.ContentType = "image/jpeg"Response.BinaryWrite (rs("Photo001"))rs.CloseSet rs = Nothing%>
The page "photo001.asp" is read from the following row written in the page "readphotos.asp":<%Response.write "<img src=""photo001.asp?ID=" & fp_rs("ID") & """>"%>
Someone can tell me what I'm doing wrong?Thanks for your cooperation.