Using media.show with the file option.

The api’s show this option for media.show:

media.show( mediaSource, listener, file )

where “file” is a Table. If provided, the chosen image is saved to a file. In this case, there is no DisplayObject added to the stage. The parameter file is a table of the form { baseDir=, filename= [, type=] }. For the ‘type’ property, use an appropriate MIME type such as “image”.

So why doesn’t this code work? I can select the image but it still displays the image on the device and does not save the file as expected:

media.show( media.PhotoLibrary, onComplete, { baseDir=system.TemporaryDirectory, filename="wkimg2.jpg", type="image" } )  

Dev is MacBookPro, build is 2012.919 [import]uid: 156018 topic_id: 31291 reply_id: 331291[/import]

I have the exactly same issue, did you find a solution? Or can anybody please help? Is this a bug?

Thank you in advance

EDIT: After a lot of search, I found out that this file option will not save to file in the Corona Simulator, because Corona have not added support to the simulator yet, but this feature should work on iOS and Android. I can refere to this topic, where I found the answer :slight_smile: -> http://developer.coronalabs.com/forum/2012/02/12/saving-camera-picture [import]uid: 36366 topic_id: 31291 reply_id: 126882[/import]

I have the exactly same issue, did you find a solution? Or can anybody please help? Is this a bug?

Thank you in advance

EDIT: After a lot of search, I found out that this file option will not save to file in the Corona Simulator, because Corona have not added support to the simulator yet, but this feature should work on iOS and Android. I can refere to this topic, where I found the answer :slight_smile: -> http://developer.coronalabs.com/forum/2012/02/12/saving-camera-picture [import]uid: 36366 topic_id: 31291 reply_id: 126882[/import]