473,473 Members | 1,477 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Dynamically getting images from Database and displaying on ASP.Netpage

Hi,

I have an ASP.Net application with the back-end as VB.Net. I have a
combo control and on the selection changed event of the combo control
I need to get the selected image from the database and display it on a
Image control on the asp.net page.

I get the image from the db as a byte array. Can anyone please help,
as to how to show the image on the page in that image control?

Thanks for your time in advance.
Jul 29 '08 #1
5 2922
On Jul 29, 3:12*pm, asha...@woh.rr.com wrote:
Hi,

I have an ASP.Net application with the back-end as VB.Net. I have a
combo control and on the selection changed event of the combo control
I need to get the selected image from the database and display it on a
Image control on the asp.net page.

I get the image from the db as a byte array. Can anyone please help,
as to how to show the image on the page in that image control?

Thanks for your time in advance.
Why are you storing the image in the database instead of on a file
server?

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Jul 29 '08 #2
On Jul 29, 3:57*pm, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Jul 29, 3:12*pm, asha...@woh.rr.com wrote:
Hi,
I have an ASP.Net application with the back-end as VB.Net. I have a
combo control and on the selection changed event of the combo control
I need to get the selected image from the database and display it on a
Image control on the asp.net page.
I get the image from the db as a byte array. Can anyone please help,
as to how to show the image on the page in that image control?
Thanks for your time in advance.

Why are you storing the image in the database instead of on a file
server?

Thanks,

Seth Rowe [MVP]http://sethrowe.blogspot.com/
Yes I am storing the images in the database.
Jul 29 '08 #3
On Jul 29, 3:57*pm, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Jul 29, 3:12*pm, asha...@woh.rr.com wrote:
Hi,
I have an ASP.Net application with the back-end as VB.Net. I have a
combo control and on the selection changed event of the combo control
I need to get the selected image from the database and display it on a
Image control on the asp.net page.
I get the image from the db as a byte array. Can anyone please help,
as to how to show the image on the page in that image control?
Thanks for your time in advance.

Why are you storing the image in the database instead of on a file
server?

Thanks,

Seth Rowe [MVP]http://sethrowe.blogspot.com/
Well it is a requirement to store the images in the database
Jul 29 '08 #4
On Jul 29, 4:01*pm, asha...@woh.rr.com wrote:
On Jul 29, 3:57*pm, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Jul 29, 3:12*pm, asha...@woh.rr.com wrote:
Hi,
I have an ASP.Net application with the back-end as VB.Net. I have a
combo control and on the selection changed event of the combo control
I need to get the selected image from the database and display it on a
Image control on the asp.net page.
I get the image from the db as a byte array. Can anyone please help,
as to how to show the image on the page in that image control?
Thanks for your time in advance.
Why are you storing the image in the database instead of on a file
server?
Thanks,
Seth Rowe [MVP]http://sethrowe.blogspot.com/

Well it is a requirement to store the images in the database
But why the requirement? Is it worth sacrificing performance and
scalability? How many images are in the database (all of your site's
or just a few)? Are you allowed to cache the images after they're
retrieved the first time?

I know that doesn't answer the question you originally asked, but
storing binary data into a database should be something that's
questioned and not done on a whim. You can quickly clog up your site
with all the cross server talk and data accessing that will happen
(especially if you aren't caching the images).

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Jul 29 '08 #5
On Jul 29, 7:43*pm, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Jul 29, 4:01*pm, asha...@woh.rr.com wrote:


On Jul 29, 3:57*pm, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Jul 29, 3:12*pm, asha...@woh.rr.com wrote:
Hi,
I have an ASP.Net application with the back-end as VB.Net. I have a
combo control and on the selection changed event of the combo control
I need to get the selected image from the database and display it on a
Image control on the asp.net page.
I get the image from the db as a byte array. Can anyone please help,
as to how to show the image on the page in that image control?
Thanks for your time in advance.
Why are you storing the image in the database instead of on a file
server?
Thanks,
Seth Rowe [MVP]http://sethrowe.blogspot.com/
Well it is a requirement to store the images in the database

But why the requirement? Is it worth sacrificing performance and
scalability? How many images are in the database (all of your site's
or just a few)? Are you allowed to cache the images after they're
retrieved the first time?

I know that doesn't answer the question you originally asked, but
storing binary data into a database should be something that's
questioned and not done on a whim. You can quickly clog up your site
with all the cross server talk and data accessing that will happen
(especially if you aren't caching the images).

Thanks,

Seth Rowe [MVP]http://sethrowe.blogspot.com/- Hide quoted text -

- Show quoted text -
Actually, just found out that I don't have to store the images on the
database and can store it on the server so I guess that makes my like
simpler.

Thanks
Jul 30 '08 #6

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

Similar topics

7
by: Vinay | last post by:
Hi All: I have a small application that stores images either in the database or as files (depending on the user preference). I'm in the process of providing a web interface to this application....
3
by: Dalan | last post by:
At first I was not certain what could cause Access 97 from displaying most jpeg images, but not all. After further testing, it seemed that all original images of less than 275 pixels per inch or...
3
by: Guadala Harry | last post by:
Here's the functionality I'm after: I need for a page to display a photo. When users click on other links within the page, the photo changes. I'd like to swap out the photo without doing a...
3
by: CLEAR-RCIC | last post by:
I have several images i want to display in an ASP.Net application. The images are being passed to me in binary format from another application. Is there a good way to write them directly to an...
8
by: Frank Millman | last post by:
Hi all This is not strictly a Python question, but as the system to which relates is written in Python, hopefully it is not too off-topic. I have an accounting/business application, written in...
10
by: gnewsgroup | last post by:
I've googled and tried various approaches, but could not resolve this problem. The article at MSDN: Displaying Images in a GridView Column only presents a simple case where all data (including the...
7
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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 ...

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.