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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Store Image in SQL Server - ASP

Status
Not open for further replies.

murugesanks

Programmer
Jan 25, 2001
48
US
Hi,
How to store image in SQL Server Database using ASP & how to view it.
Please give me the code.
Bye
Murugesan
 
You would need to store it as a BLOB type, then do a Response.BinaryWrite to view the image.

I would suggest storing the image in a folder, though, then just storing the file path in SQL.

The documentation that I've read says that storing images in a DB is generally a bad thing... and I think it has something to do with the significant decrease in speed.

Again - I could be wrong, since I have never stored binary types in a DB of any sort...

But if you really needed to store the images in the DB, store it into a BLOB column, then Response.BinaryWrite the output to view it.


leo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top