I spent a day reading posts over on the devshed forums about storing the actually images in the blob field of a sql database and came to the conclusion that while it is possible it is kind of a pain in the butt. The preferred method was to store the images in a directory on your sever and store the paths to the images in the database. They you can just use the img tag say on your webpage. This doesn't really answer the question you originally posted but what the heck.
Just my $0.02 - will save you some time on research of your own.
"i walk in stride with people much taller than me and partly it's the boots but mostly it's my chi and i'm becoming transfixed with nature and my part in it which i believe just signifies i'm finally waking up "