Hello CN1,
my app will create some images(from camera or album), which are stored locally under installation path. Read/Write is no problem until storage to a sub-folder.
Because there could be many images, I would like to storage them under a sub-folder.
I have tried to make a directory using
FileSystemStorage.getInstance().mkdir("photos");
but I can't find it on Simulator. (/Users/username/.cn1)
I have also tried to storage the photo directly with sub-folder path, like "photos/image.png", but i get error:
OutputStream save = Storage.getInstance().createOutputStream(FILE_PHOTO_DIR + "/" + fileName);
java.io.IOException: Illegal charcter '/' in storage name: photos/image.png
The first question is how to make a folder under the installation path?
and the second: how to storage files in the sub-folder?
Thanks
Pai