returning images from a database as part of a page

G

Guest

Hi;

I have to store final reports for later viewing. If the reports are html and
have images I also have to have a way to return the images too.

What is the best way to do this? I was thinking that I store each image in
the DB, use the PK of the image as part of it's "filename" and the <img ...>
have a name like http://www.domain.com/website/dynamicimages/12345.jpg and
then when there is a request to dynamicimages/* it goes to a IHttpHandler
class I write that pulls the image from the database and returns it.

Or I use http://www.domain.com/website/dynamicimages/12345/1.jpg where 12345
is the pk for the report and the images in it are numbered 1.jpg, 2.jpg, etc.

Is this the best way to do this?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
R

Robert Porter

Take a peek at the thread called "asp image control output" in this
newsgroup, it should shed some light on your issue.
 
S

Steven Cheng[MSFT]

Hello Dave,

I think your current plan is quite good an reasonable. use a temp table in
database to store those image binary stream and then read them out later
through an Httphander. This is also what I can get so far.

Please feel free let me know if you have any other concerns on this.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 

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

Top