POST image to mysql

I would like to set up a camera to take pics of the garden at different variables and save them to a mysql db on the web.

I have the ethernet shield and cc3000 wifi, so could use either (though this doesn't matter because that is just the connection).

I would imagine that I have to take the pic, save it to SD, then upload it to the server. I would think this would be quite common, but I haven't found anything putting all this together.

The only thing I could find was sending sensor data.

Can someone tell me how to get the image file from SD card to a mysql database? I can handle the php, I am just looking for the arduino side.

Thanks!