Jump to content

Storing Images


Nodral

Recommended Posts

Hi All

 

I've got a DB with approx 3 thousand users and a weekly  graph is created using php for each users usage.  This is processed by a cron job.  The issue I have is storing the graph images.  I've googled the situation and I'm getting a large difference of opinions about which is the best way to do it.  almost a 50 / 50 split Blobs or files.

 

I'd like to do it as blobs as I have issues with file permissions on my hosting server (ie I can write an image file, but then if it needs overwriting or deleting I can't do it dynamically, even when I set the file permissions to 777)

 

My question is, how do I insert an image into a DB?

 

If for example my image was user1.jpg, what would the process be from a SQL statement?

Link to comment
https://forums.phpfreaks.com/topic/252295-storing-images/
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.