how to store image in database and retrive from database
Asked
Active
Viewed 1,974 times
1
-
Base64 encode the binary, and store in a blob. – Pentium10 Mar 16 '11 at 08:11
-
possible duplicate of [Storing Images in DB - Yea or Nay?](http://stackoverflow.com/questions/3748/storing-images-in-db-yea-or-nay) – miku Mar 16 '11 at 08:17
-
There are lot of howtos on the net. Like http://www.phpriot.com/articles/images-in-mysql – kapa Mar 16 '11 at 08:30
1 Answers
2
It depends upon the circumstances. IF you are not having a large number of images then store them in you data base and their datatype should be blob. But if you are having a large number of images then store them in extra folder and save the path in your database

Awais Qarni
- 17,492
- 24
- 75
- 137