473,385 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Images Stored in SQL to show on ASPX pages?

I have images stored in SQL (not paths or urls)
I need to show them on webpages but the image control only seems to have a
imageurl property.

Is there another control I should use to databind?

is there a way to databind the imageurl property?

I am using VS 2005 but if you know how to do it in 2003 that helps too.

Thanks mucho for any advice


Nov 19 '05 #1
4 1144
you should be able to just .write it to the screen, you wont use an image
control.

Just google it, I think you will find a ton of samples. As a side note, it's
still not a great idea to store the image in the DB if you can do it
elseways... but that's another issue.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Vonnie" wrote:
I have images stored in SQL (not paths or urls)
I need to show them on webpages but the image control only seems to have a
imageurl property.

Is there another control I should use to databind?

is there a way to databind the imageurl property?

I am using VS 2005 but if you know how to do it in 2003 that helps too.

Thanks mucho for any advice


Nov 19 '05 #2
I found this at sqlteam.com is something like this what you mean?

Response.Write "<a href=" & trim(bobjRS("LinkToURL")) & ">"
Response.Write "<IMG SRC=" & trim(bobjRS("ImageURL")) & " BORDER=0 "
Response.Write " WIDTH=" & trim(bobjRS("Width"))
Response.Write " HEIGHT=" & trim(bobjRS("Height"))
Response.Write " ALT=" & Chr(34) & trim(bobjRS("ALTText")) & Chr(34)
Response.Write "></a>"
Thanks for pointing me in this direction! I googled at lot but never found
anything except storing urlsCurt_C [MVP]" <software_at_darkfalz.com> wrote
in message news:7F**********************************@microsof t.com...> you
should be able to just .write it to the screen, you wont use an image
control.

Nov 19 '05 #3
Dynamic images have to be rendered from an external file which is what the
href attribute would point to.

Take a look at this article --
http://www.codeproject.com/aspnet/Dy..._Extention.asp.

"Vonnie" <v.******@verizon.net> wrote in message
news:V%DVe.3056$YI6.2476@trnddc05...
I have images stored in SQL (not paths or urls)
I need to show them on webpages but the image control only seems to have a
imageurl property.

Is there another control I should use to databind?

is there a way to databind the imageurl property?

I am using VS 2005 but if you know how to do it in 2003 that helps too.

Thanks mucho for any advice


Nov 19 '05 #4
You'll need a special page (or an HTTP Module that simulates a page) so the
Image control can reference it.

These articles contain most (if not all) of the details you'll need.
http://SteveOrr.net/articles/EasyUploads.aspx
http://SteveOrr.net/articles/ImproveYourImages.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Vonnie" <v.******@verizon.net> wrote in message
news:V%DVe.3056$YI6.2476@trnddc05...
I have images stored in SQL (not paths or urls)
I need to show them on webpages but the image control only seems to have a
imageurl property.

Is there another control I should use to databind?

is there a way to databind the imageurl property?

I am using VS 2005 but if you know how to do it in 2003 that helps too.

Thanks mucho for any advice


Nov 19 '05 #5

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....
1
by: James Lennon | last post by:
I developed a series of ASPX pages using VS 2002 and 1.0 version of the framework. These pages save the sessions state information InProc. I have upgraded to VS 2003 and 1.1 of the framework and...
4
by: moondaddy | last post by:
I have an app where users will upload photos to their shopping cart. When they review their cart I need to include a light weight thumbnail of the image they uploaded. how can I take the image a...
5
by: Peter Lapic | last post by:
I have to create a image web service that when it receives an imageid parameter it will return a gif image from a file that has been stored on the server. The client will be an asp.net web page...
7
by: mosipenko | last post by:
I have a website that has articles and images. The articles are stored in one table, and if they have an image associated with them, it's stored in another table with a common id linking them. I...
7
by: Sirplaya | last post by:
I am retrieving images that I stored in SQL Server on my web pages in C#. I have no problem with the images displaying, however, I am trying to wrap the image with an <A HREF ..." and each time I...
1
by: tshad | last post by:
I have some emails I am sending from my .aspx pages. These pages are .htm pages that work fine in outlook and show all my images correctly. But from my dslextreme and yahoo accounts they don't. ...
3
by: wardemon | last post by:
Hi All, I have a aspx page named: ImageProcess.aspx that creates a thumbnail version of an image by passing the ImagePath, width, and height. The ImagePath is taken from a table from a database,...
0
by: =?Utf-8?B?c2hhZG93?= | last post by:
After migrating my project from VS2003 to VS2005, the images in my aspx pages don't show (only a red X is shown). But the images show up inside the Visual Studio View Designer. This is the aspx...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.