Display img from database

  • Thread starter Thread starter Shawn
  • Start date Start date
S

Shawn

Hi.
I need to display images stored in a Sybase db. I know I can do it like
this:
Response.ContentType = "image/gif"
Response.BinaryWrite(objRS("Picture"))

But then I have to show the image in it's own page. What I need to do is be
able to show the image in an image control. Is that possible?

Thanks,
Shawn
 
An image if not includeded as base64 encoded image in the
html alwas is a separate "page". I suggest creating a
webform that does exactly what you mentioned ..

And i don't think it is a good idea to include the image in
the html sourcecode because the plaintext encoding
increases the size of the image.



(BinaryWrite)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top