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

Data Files & SQL Help

Status
Not open for further replies.

cfgcjm

Programmer
Oct 30, 2007
21
US
I have a SQL database on my website, is it possible to save images or zip files to a database through php?
 
I'd recommend saving the files to the file system and saving a link to the image in your database.

[small]----signature below----[/small]
Majority rule don't work in mental institutions

My Crummy Web Page
 
I'll echo AlexCuse's general recommendation to store only URLs/file paths in the database that point to the image, but if you really want to store these in the database, and assuming you are using SQL Server 2005 or later, use VARBINARY(MAX) as a column type.

--------------
SQLS metasearch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top