How can I do to insert an image into a database?

Actually, maybe I’m misunderstanding. Do you just mean, upload the file to a directory and store the file path in a database field? Then when you output the list you have a link to download the image?