If you are experiencing an issue please mention the full platform your issue applies to:
I am new to Codename1,i am facing some problem regarding capture and storing captured image.
String path=Capture.capturePhoto();
image = Image.createImage(path);
String homePath= FileSystemStorage.getInstance().getAppHomePath();
String image_name = System.currentTimeMillis() + ".png";
FileSystemStorage fss = FileSystemStorage.getInstance();
OutputStream save = fss.openOutputStream(homePath + image_name);
ImageIO.getImageIO().save(image, save, ImageIO.FORMAT_PNG, 1f);