Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: Displaying images with ASP - Access


Message #1 by "neh" <nehal752001@y...> on Wed, 19 Feb 2003 05:56:26
A quick question. Is it possible to store images together with text in 
Access DB and display it using ASP. Can anyone help?
Message #2 by "Josh Katsaros" <katsarosj@y...> on Sat, 22 Feb 2003 05:09:21
Yes it is possible.  You must store the images as OLE objects.  Do a 
search on "storing and/or retrieving images in microsoft access" using 
your favorite search engine (I prefer google).

Can't help you out on the code, I don't use that method.  What I do is 
store the path to the image in a database, then when I need to retrieve it 
I use the following format:

<% Response.Write rs("imagepath") %>

"imagepath" would hold either the virtual path or absolute path.  For 
example,  in the database the value would be "images/image_i_want.gif".  

Insert this for the path to your image on your asp page. 

Hope this helps.

JK

> A quick question. Is it possible to store images together with text in 
A> ccess DB and display it using ASP. Can anyone help?

  Return to Index