I am interested in saving an image file to Playbook photos folder. By using documentsDirectory i am able to save my file into documents. But native pictures app of playbook doesn't show images which are in documents directory , I need to show my images in Pictures directory like Scrapbook save images in photos. photos->scrapbook->(all images created in Scrapbooks ) by which it can be shown in native pictures app of playbook.

How can i do so?

有帮助吗?

解决方案 2

I did it...

var imgStr : String = title + ".jpg";
var imgFile : File = new File("/accounts/1000/shared/photos/Custom folder/" + imgStr);

It will allow you to save image in photos directory.

Thanks All for your Support.

其他提示

I think you want to use the CameraRoll class. From the docs:

The CameraRoll.addBitmapData() method adds an image to the device's dedicated media library. To check at run time whether your application supports the CameraRoll.addBitmapData() method, check the CameraRoll.supportsAddBitmapData property.

The CameraRoll.browseForImage() method opens an image-choosing dialog that allows a user to choose an image in the media library. When the user selects an image, the CameraRoll object dispatches a select event. Use the MediaEvent object dispatched for this event to access the chosen image. To check at run time whether your application supports the CameraRoll.browseForImage() method, check the CameraRoll.supportsBrowseForImage property.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top