Thanks Shazron, Sorry for the bad stream choice, I'll switch to Google group for the next Cordova usage question. Nevertheless, as the feature is not available yet, your answer was quite effective ;-) Best regards,
Arnaud 2012/12/3 Shazron <[email protected]> > 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 <[email protected] > >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 > > >
