Last post Sep 24, 2010 10:54 AM by suresh dasari
Sep 24, 2010 08:42 AMfirstname.lastname@example.org|LINK
I have stored DB images. and I try to access images using url rewrite. But it is not happaning.
I tried this scott methord. http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx. i tried with Application_BeginRequest, but no use
Basically Client don't want to use .aspx extension for images
Is it possible acess db images with out using .aspx file name extension? then can anybody tell me how to achieve this!!!!!!!!!!!!
My sample url is "www.sample.com/images/folder/imagefilename.jpg" I want to rewrite to "www.sample.com/images/pimges/default.aspx?file=imagefilename.jpg&cat=folder"
Sep 24, 2010 09:18 AM|grundebar|LINK
When you pull an image from a database, it is not actually an image; it is binary data. The "normal" procedure is stream the binary data back to the client with the appropriate headers to trick the browser into displaying the data as an image. It works fairly
well, but each image has an aspx (or other handler) extension.
One way around this would be to pull the binary data out, stream the binary data out to the server and save it as an actual image (jpg|gif|png|etc) and then link to that image in your response or display that image directly.
Sep 24, 2010 10:54 AM|suresh dasari|LINK
hi try this link