Click here to Skip to main content
15,914,074 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Everyone,

I am a fresher.
I have a table in database which is having column as Photo having datatype as as image.

data in photo column is stored in binary format.

i want to create a program which will generate thumbnail images(.jpg) into my local Computer.

Please help me out..!!
Posted

1 solution

Read each image into an Image class instance.
Use the Image.GetThumbnailImage[^] method to create the thumbnail.

You can then use the Image.Save method to create files.

(But personally, I'd do it the other way - store thumbnails in the DB along with a location specifier for the full image. Images can take up significant DB space and bandwidth!)
 
Share this answer
 
Comments
vaibhav mahajan 12-Jun-12 6:19am    
could you can please elaborate it OriginalGriff ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900