Displaying graphics and word documents from a database in a web page
Hi
I'm having some difficulty in properly displaying some graphics and word documents in a web page i'm creating.
The images and word documents are stored in a database as OLE objects. I can extract these files from the database using standard SQL but I don't know how to display them (i.e. the images). What I want to do with the word documents is have them stored in links so that when a link is clicked on, the particular document is displayed.
If anyone has some tips or advice it would be greatly appreciated.
Thanks,
pozzie.
Re: Displaying graphics and word documents from a database in a web page
Quote:
Originally posted by pozzie
Hi
I'm having some difficulty in properly displaying some graphics and word documents in a web page i'm creating.
The images and word documents are stored in a database as OLE objects. I can extract these files from the database using standard SQL but I don't know how to display them (i.e. the images). What I want to do with the word documents is have them stored in links so that when a link is clicked on, the particular document is displayed.
If anyone has some tips or advice it would be greatly appreciated.
Thanks,
pozzie.
Use BinaryWrite, here is a tutorial on how to retrive images stored in database. For Word file just change the content type, other then that it is the same.
Hope this helps.
Danial
http://www.4guysfromrolla.com/webtech/060100-1.shtml