It seems I am able to write a single image with the following code:
ID1 = replace(request("ID1"), "'", "''")
connStr = Application("DSNFPT")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "select [Image],[ContentType] from FPT_Images where ID = " & int(ID1) & " order by id desc", connStr, 2, 4
If Not rs.EOF Then
Response.ContentType = rs("ContentType")
Response.BinaryWrite rs("Image") & "here"
response.write "No Image Available"
Set rs = Nothing
However I need to write 2 images in the same page (they will actually overlap each other so I can't just create 2 img tags that call different pages). I also can't overlap the image myself and then upload it that way because I have thousands of combinations that the user can put together. Is this possible to do using binary.write or should I be looking for a different solution?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.
Your password has been sent to:firstname.lastname@example.org
To follow this tag...
Thanks! We'll email you when relevant content is added and updated.
Share this item with your network: