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]