-2

Possible Duplicate:
How can I store and retrieve images from a MySQL database using PHP?

i want store and fetch image from mysql database. is anybody i have knowledge about this.

Thanks in advance. Ravi Sharma

Community
  • 1
  • 1

3 Answers3

0

You can store images in a Blob-type column.

Check out the comprehensive tutorial here

Rick
  • 172
  • 11
0

You can store the image contents (use file_get_contents function) into field of type BLOB. Another solution to decode binary data with function base64_encode and store in simple TEXT type field.

Gedrox
  • 3,512
  • 1
  • 19
  • 29
0

You do not want to store images in your database. You want to use the filesystem and only store image meta data in the database, like the filesystem path.

wonk0
  • 12,881
  • 1
  • 19
  • 14