Acceptingimage from android and saving in local directory

Hello everyone, as while developing i got stuck at a point.
The android device takes picture and converts it into Byte useing class’s encodeByte(byte b), this method return String. The vaadin application needs to accept this String and convert the String back to Byte
. method will be decode(String s). But my problem is after converting it back to byte array how should i store it in particular directory.


Didn’t quite get what you are trying to do (some phonegap stuff??), but the easiest method to access camera is via Upload component. We have
an example of this under development
, but the method should work well today.