Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 5-Dec-12 0:26am
Comments
aspnet_regiis -i at 5-Dec-12 8:19am
   
what help do you want ? are you stuck somewhere ? where is the code?

1 solution

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

Solution 1

Try the following link ........this link will guide u!!!!!!!
 
http://www.csharp-station.com/articles/thumbnails.aspx
  Permalink  
Comments
sunil_mali at 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)



Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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