03-05-2013 07:36 AM
How can i save an image in a way that doesn't show up in the pictures app on the device? I am using ForeignWindowControl to show camera and capture image but I am following a sample which just saves the image to camera directory in stillcallback function. I would like to only show and have access to the images captured via my app.
Any advice appreciated.
03-05-2013 08:03 AM
Thanks for the reply,
Probably, I'm currently using camera_roll_open_photo to write the data to device but what would I need to do/change to save in my apps data folder instead?
03-05-2013 09:06 AM
03-05-2013 09:39 AM
Ive used QFile::rename(filename, newFilename); to move the file to data folder.
One more question - anyway to create a folder within the data folder - I have tried saving an image using ./data/campturedimages/image.jpeg but it doesn't create a capturedimages folder.
03-05-2013 10:44 AM - edited 03-05-2013 11:00 AM
Can I suggest you close off this thread accepting my post above as the solution and then open a new thread with your new problem including the code you have tried to use, there should be no problem creating a folder within your apps data area.
03-11-2013 12:54 AM
the correct answer is to just create your own filename in your app's sandbox.
The camera_roll_open_photo() API is designed specifically to provide a new filename in the shared directory. Since you don't want to do so, just don't use that function to get a filename. Instead, open() your own file.