Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Display Image from Database in an Image control

Reply
Thread Tools

Display Image from Database in an Image control

 
 
chrispragash@hotmail.com
Guest
Posts: n/a
 
      08-25-2005
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

 
Reply With Quote
 
 
 
 
Aidy
Guest
Posts: n/a
 
      08-25-2005
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.

<> wrote in message
news: 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
Display Image from Database in Image Control chrispragash@hotmail.com ASP .Net 1 10-18-2006 01:48 PM
choosing to display or not to display a checkbox in repeater control. Imran Aziz ASP .Net 4 08-11-2005 05:00 PM
HOWTO: display database without refresh web page to query database =?Utf-8?B?U1M=?= ASP .Net 3 05-15-2005 08:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57