cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shazron <>
Subject Re: Crop image before upload ...
Date Mon, 03 Dec 2012 19:35:32 GMT
Hi Arnaud,
This is a mailing list for development of the core Cordova API itself, not
usage of Cordova. You should try the PhoneGap Google Group for these types
of questions.

That being said, you can't with the current Cordova API. I would think the
next course of action is to create a plugin that receives the base64 data
and writes it to the file uri that you had before, overwriting the existing
file. That might use a lot of memory however. An alternative is to POST the
canvas base64 data directly to your server after manipulation.

On Mon, Dec 3, 2012 at 10:13 AM, Arnaud Boulay <>wrote:

> 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

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