Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I along with my friends designing a website in ASP.NET, I would like to know how an image can be compressed and stored in database, and while retrieving from the database compressed image should be extracted to its normal memory size. i would like to add such dlls in my project?
Posted
Comments
[no name] 28-Nov-11 4:27am    
how about using varchar as storage for image? just saving the path. It will help you save more space than compressing the image.
[no name] 28-Nov-11 4:28am    
you can also ask the user to compress the image they are trying to upload, just like here in code project, they limit users to upload 15kb of image :)

if you really need to compress it. This code project article will help you:

Compressible Bitmap Using In-Memory Image Compressing Technique[^]

-Eduard
 
Share this answer
 
Save An Image Into SQL Server 2000 Database[^]
this will be helpful think so
 
Share this answer
 
v2
If you want to zip the file refer this link

http://forums.asp.net/t/1086292.aspx[^]

Otherwise what Eduard had suggested go with that
 
Share this answer
 

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