Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   Display Image from Database in an Image control (http://www.velocityreviews.com/forums/t785287-display-image-from-database-in-an-image-control.html)

chrispragash@hotmail.com 08-25-2005 01:04 PM

Display Image from Database in an Image control
 
Hello Everybody,

I have a server control that stores an image in the database as an
image datatype. I would like to display this image (may be in an image
control) along with other text in a page. What is the best way to
achieve this functionality. Thanks for all the help in advance.

Regards,
Chris


Aidy 08-25-2005 07:38 PM

Re: Display Image from Database in an Image control
 
I'd have a ViewImage.aspx page that accepts the ID of the image to store in
your DB then have that page access the image and right it to the response
stream. Your page would then construct tags like

<img src="ViewImage.aspx?ID=123">

Ideally you should store the images on the file system and the path of the
images in the DB.

<chrispragash@hotmail.com> wrote in message
news:1124975070.934024.50440@g49g2000cwa.googlegro ups.com...
> Hello Everybody,
>
> I have a server control that stores an image in the database as an
> image datatype. I would like to display this image (may be in an image
> control) along with other text in a page. What is the best way to
> achieve this functionality. Thanks for all the help in advance.
>
> Regards,
> Chris
>





All times are GMT. The time now is 05:10 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.