Click here to Skip to main content
14,421,575 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi All,

I am implementing code for image compression.
I want to compress image and then upload on a server using Asp.net ..
will it be possible?
If anybody have an idea then plz help me.
Thanks in advance..
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Hi,

you simply need to create a new Bitmap with System.Drawing Class and resize/set a new resolution to uploaded image.

With Best Regards
   
v2
Comments
Manisha Tambade 12-Mar-12 12:11pm
   
Bjorn Thanks for the answer.But insted of image there can be any scanned document or pdf file in that case will this Bitmap logic work? Actually i am new to this so need suggestion.
El_Codero 12-Mar-12 13:28pm
   
Unfortunately no, Bitmap Class is only to resize/reduce size of Images. You can use 7-zip SDK to store uploaded contents compressed to your server, but it would be not a good solution if users must be able to "work" with their uploaded files because you have to View/extract their contents from Archive in each session.
http://www.7-zip.org/sdk.html
Best Regards

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100