Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I would like to save some large images like 5MB image to mysql database using php can anyone help
Posted
Comments
vbmike 14-Apr-15 12:44pm    
http://www.phpro.org/tutorials/Storing-Images-in-MySQL-with-PHP.html

1 solution

It would be bad to answer the question asked so many times again and again. Please see, for example,
http://forum.codecall.net/topic/40286-tutorial-storing-images-in-mysql-with-php[^],
http://www.codeproject.com/search.aspx?q=PHP+MySQL+%28store+OR+save%29+images&doctypeid=1%3b5[^].

More typically, it is recommended not to store images themselves in the database. Instead, you can give all images some unique names and store them in the file system of your site's host and use the database to store just the file file names.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900