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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.