Sorry I can't help you on this....I have never looked into exactly how that would be done. (I'm sure others will respond with a solution, though.)
But I did want to mention that what you are trying to do is typically not recommended.....it bloats the database, and some client technologies are unable to deal with the blob datatypes. What is usually suggested is to store the images outside the database in a directory on the hard drive, controlled by the operating system. In SQL Server, you then use a varchar column to contain a reference to where the image(s) is stored. i.e. this column might have a value of 'c:\assets\images\tractor.jpg'.
My apologies again for not being to help with your specific question.
bp