Click here to Skip to main content
12,821,494 members (23,210 online)
Rate this:
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 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 1:26am
aspnet_regiis -i 5-Dec-12 8:19am
what help do you want ? are you stuck somewhere ? where is the code?

1 solution

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

Solution 1

Try the following link ........this link will guide u!!!!!!!
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170308.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2017
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