Jump to content

Images in MySQL


craiggerz

Recommended Posts

Hi I'm looking for information on how to upload an image to a database? Can someone point me in the directions of some tutorials?

 

Also is there a way that I can import a database into myphpadmin? I use Freeservers and I see the export function but no import, or is it just that import has been disabled?

 

Thanks,

Craig!

Link to comment
https://forums.phpfreaks.com/topic/44948-images-in-mysql/
Share on other sites

Hi I'm looking for information on how to upload an image to a database? Can someone point me in the directions of some tutorials?

Don't have any tutorials right off the cuff, but this page of the MySQL manual describes how the BLOB (Binary Large Object) datatype works. You can then read your images as binary and import them into that type of field.

 

Also is there a way that I can import a database into myphpadmin? I use Freeservers and I see the export function but no import, or is it just that import has been disabled?

 

Typically, on export, you have a SQL file that will recreate your entire database, so all you have to do is run the file as a SQL query, and you'll have the backup (or import).

Link to comment
https://forums.phpfreaks.com/topic/44948-images-in-mysql/#findComment-218242
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.