Ask a Question related to ASP.NET General, Design and Development.
-
David J. Berman #1
Re: displaying several images from a sqldatabase.
Hi I have tackled this HTTPHandler thing. Let me point you to some helpful
article(s):
This shows you how to make a web handler using .ashx files.
[url]http://www.devhawk.net/articles/imagehandler.aspx[/url]
and more in this article:
[url]http://www.wintellect.com/resources/redirect.asp?url=http://msdn.microsoft.c[/url]
om/msdnmag/issues/02/08/WickedCode/default.asp
Also check out wintellect.com or codetoad.com.
Something annoying about using the .ashx files is that you won't get syntax
highlighting or tool tips. Sorry I was lazy / stupid and didn't bookmark
the URL on how to do this but you can google it. The trick was to go into
the registry settings for dev studio and copy the .aspx options into a new
..ashx key - but don't do this unless you find the article or you'll be
spending the day uninstalling / reinstalling :)
GL!!!
"B" <@> wrote in message news:Oa256uZODHA.2172@TK2MSFTNGP10.phx.gbl...how> I do not know to create a page on the fly. Do you have any examples on> to do the first part?
>
> "Create a page or HTTPHandler and change the MIME (ContentType) to the>> > Image type. The page will receive the Image ID as parameter, read the
> > data from the DB and write the data out by using BinaryWrite"
> I can handle the second part....
>
> Thanks in advance...
>
> Blake
>
> "Natty Gur" <natty@dao2com.com> wrote in message
> news:uWzucUZODHA.2052@TK2MSFTNGP11.phx.gbl...>> > Hi,
> >
> > Create a page or HTTPHandler and change the MIME (ContentType) to the
> > Image type. The page will receive the Image ID as parameter, read the
> > data from the DB and write the data out by using BinaryWrite.
> >
> > Now, for every picture that you want to show add a picture box in other
> > page and set the "src" attribute of the picture to the ASPX page that
> > read and write the image.
> >
> > Natty Gur, CTO
> > Dao2Com Ltd.
> > 28th Baruch Hirsch st. Bnei-Brak
> > Israel , 51114
> >
> > Phone Numbers:
> > Office: +972-(0)3-5786668
> > Fax: +972-(0)3-5703475
> > Mobile: +972-(0)58-888377
> >
> > Know the overall picture
> >
> >
> > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> > Don't just participate in USENET...get rewarded for it!
>
David J. Berman Guest
-
Help displaying images
I am trying to display many pictures. I get all the file names in an array, cycle through the array creating image objects, then add them to the... -
Storing and displaying Images
I am trying to find out which one of following two (2) options is fastest and most reliable in order to work with 100,000 images located in 100... -
Displaying images dynamically
i am trying to display images dynamically on a page based on a user selection from a previous page. i have tried so many ways to achieve this but i... -
displaying images
i am tying to display images dynamically on a product detail page based on a user selection on a page which displays a list of products. i am using... -
ASP Displaying Images from within SQL DB
I've been searching and searching for this and there are lots of posts - but very few answers. I have a SQL2000 Database that has jpg images in a...



Reply With Quote

