Hi Prabhu, I am not aware of sql server db, but as far as for oracle database is concerned, u can store the jif/jpeg as binary data into the datatype BLOB. Try to search a similar datatype ,which can hold the binary data and write to it.
"Failure is not when you fall down; its only when you fail to get up again."
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com