KazanDaemon
03-08-2009, 05:41 PM
Is it possible to store user-posted images (max 50 KB) in MySQL database?
For example, user registering at my forum and uploading his avatar image. I would like to store it in MySQL, not as image file on disk. I think it will more comfortable, because there will be never problem with giving name to userfile and synchronization database with files after restoring backups.
But is it real? Did someone store images in database before? Some images become incorrect when converting to text format. Is it available to store binary data in MySQL? And how to realize it?
For example, user registering at my forum and uploading his avatar image. I would like to store it in MySQL, not as image file on disk. I think it will more comfortable, because there will be never problem with giving name to userfile and synchronization database with files after restoring backups.
But is it real? Did someone store images in database before? Some images become incorrect when converting to text format. Is it available to store binary data in MySQL? And how to realize it?