473,472 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Data base images

I have an object that has a collection of Photo in it. The Photo as
stored in the database as image type. Photo has a method that returns
the a Stream with the data so I can call System.Drawing.Image image =
System.Drawing.Image.FromStream(Photo.Stream). Now that I have an image
object how can I display it on my asp page?
Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
1 859
Hi Jeff,

You'll need a separate URL to feed this image, since ASP.NET can't stream
teh image and the HTML at the same time. Usually you should set up an HTTP
Handler (or just a page) that can feed images from the database. You then
reference this dynamic URL in your HTML returned from teh ASP.NET page.

To stream the image back use Response.OutputStream (
MyBitmap.SaveAs(Response.OutputStream); or some variation thereof).

+++ Rick ---
"Jeff Simmons" <js******@liquidcognition.com> wrote in message
news:uV*************@TK2MSFTNGP09.phx.gbl...
I have an object that has a collection of Photo in it. The Photo as
stored in the database as image type. Photo has a method that returns
the a Stream with the data so I can call System.Drawing.Image image =
System.Drawing.Image.FromStream(Photo.Stream). Now that I have an image
object how can I display it on my asp page?
Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul Copeland | last post by:
Hi, I am using Access2000 and have developed a data base which successfully uses DAO code in some of the forms to update tables. Recently I converted the data base to a split MDE data base and now...
0
by: vladislav.moltchanov | last post by:
I am developing an Access tool for generating an Application MDB for data entry in a "large scale" project. At design stage I would like to keep open these two MDB. One current is generating forms...
2
by: Vicente Nicolau | last post by:
Hello I'm making a PDA project that uses a data base. That data base is saved in a xml file. When the application starts up, I load the xml file in memory. The application makes changes in the...
3
by: aaa | last post by:
How can I save data without connecting to data base every time a client's request arrives? If I work on a temporary memory I cannot work with sql queries, but connecting to data base takes time.
3
by: nandhanvijay | last post by:
hi every am trying to connect data base in vb.net but am unable to connect. As per the book am following that says to connect to data base go to tools menu connect to data base option. u will...
1
by: sudheerk | last post by:
already image is in the data base.after log in how to display the image in welcome page using session varable
0
by: apwuhp | last post by:
We have used a data replication product that has replicated our production data base to another server, both servers are AIX 5.3 operating system and IBM DB2 data bases. The product replicates at the...
1
by: gerryis2000 | last post by:
Hi, kindly guide me on how to solve this security problem. i set a passord to the data base and seems to work well. but since several people use the data base and know the passord, i think its risky....
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.