cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Boulay <arno.coo...@gmail.com>
Subject Crop image before upload ...
Date Mon, 03 Dec 2012 18:13:48 GMT
Hi all !

I am wondering what is the best way to achieve the following treatment (on
Android) :

- take picture with the camera (easy)
- use the FILE_URI to avoid memory failure
- use jCanvas (or other) to crop the picture
- sending the modified picture with FileUpload to the backend

The gap to fill is between the original picture which is a file stored into
local storage and the Base64 which is the result of the image treatment.
So, the question is : how can I overwrite the original file with the new
image before the upload ?

Thanks for the help.
Regards,
Arnaud

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message