Arduino and SQL

You are to (somehow) receive a picture, that is a JPG or other image format file, onto an Arduino.
You then have to rename that file and store it file onto an SQL server. Is that right ?

A few questions:

Where are image files stored, which you have to load onto the Arduino ? On a web or SQL server ?
What Arduino have you been asked to use ?
What is the maximum size (bytes) of image file you have to handle ?
Have you some sample commands for loading an image file onto your SQL server ?