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!

How can I save files inside mysql? is this possible?

Status
Not open for further replies.

Sina

Technical User
Jan 2, 2001
309
CA
Hello dear gurus,

How can I save files inside Mysql?
i.e I have a couple of files (binary) of size 6 to 8 megs.
I'd like to save these files inside mysql database and use php to allow only selected users with correct users id and password to access the files (to download the files).
So basically I have a login page,
Users login, and they can download the files.

Is this possible at all?
If you could give me a hint or a sample script, I'd appricate it.

Thank you all
 
I'm only a beginner, and probably wrong, but I thought BLOB was limited to 65K?
 
64K might be maximum sortable part of BLOB, real maximum may be from 1M...2G - Idontknow never used them
 
Aha - Just had as look into it - there are four different types of BLOB...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top