Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images in Database 1

Status
Not open for further replies.

lorita2002

Programmer
Jan 30, 2002
17
IN
Hi All,

I need to have images in the database which I will dynamically call in the HTML pages through ASP. How can I do this? I tried setting the database field as OLE object and what else i have to do?

Thanks & Rgs,
Lorita

 
Whenever I refer to images in the database I just store the path to the image(or just the filename if the path is the same for all) in a text field and refer to them that way.
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Hi Tony,

But i am not able to do it with MS-Access. If i give the passname, it just displays the path name itself.

Lorita
 
when you call the info from the database, construct it like this:
Code:
strPath = objRecordset("ImagePath")
Response.Write &quot;<IMG SRC='&quot; & strPath & &quot;'>&quot;
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Hi Tony,

It sounds working. I'll try it.

Rgs,
Lorita.C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top