Show Images Stored In SQL-dB

Results 1 to 2 of 2

Thread: Show Images Stored In SQL-dB

  1. #1
    EBo Guest

    Default Show Images Stored In SQL-dB

    Hi,<BR><BR>I have images stored in an SQL-dB and want to show them on my page. I&#039ve tried several ways, but i only get the stupid cross...<BR><BR>after setting the query i use these statements in my asp:<BR><BR>Response.ContentType = "image/bmp"<BR>response.BinaryWrite rs("image") <BR><BR>and call the page like this in another page:<BR><BR>&#060;img src="picture.asp"&#062;<BR><BR>But... it doesn&#039t work! ))-: Does anyone have a good suggestion / alternative???<BR><BR>Thanks,<BR><BR>Ebo<BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default RE: Show Images Stored In SQL-dB

    &#060;img src="picture.asp"&#062; will work<BR><BR>what ELSE is on your picture.asp<BR><BR>code it like this<BR><BR>Response.Expires = 0<BR>Response.Buffer = True<BR>Response.Clear<BR>Response.ContentType = "image/gif"<BR><BR>sstr = "the query here"<BR>recordset.Open sstr,connection,3<BR>Response.BinaryWrite rec(0)<BR>Response.End<BR><BR><BR>This is how i do it and it works fine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts