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

I have one requirement where i need to compress my image and post it onto the server. but it should send only compressed image to server not the real one. so obviously our asp.net code will not work as it will take actuall image on server and then it will compress. I need some javascript code or some other technique using which i can compress size of my image before uploading on server. Currently i have file upload control and submit button. So my file upload control should pick file from client side,it should compress on client side and then only it should send this to server. Please help me with these...
Thanks in advance
Posted
Comments
bbirajdar 5-Dec-12 8:19am    
what help do you want ? are you stuck somewhere ? where is the code?

1 solution

Try the following link ........this link will guide u!!!!!!!

http://www.csharp-station.com/articles/thumbnails.aspx
 
Share this answer
 
Comments
sunil mali 5-Dec-12 12:42pm    
Thanks bro...
your solution is nice but your solution has server side code and i want client side code. server side code has some disadvantages ex
1. Whatever image i upload, it will actually download on servers memory and then it will resize.
2. Downloading of image on server takes time if it is more than 2mb or 3mb
Thats what i want to save and it can be done only by using some clie.nt side script.

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