You can tell media.show() the base directory where to save them and as such you can save them to system.DocumentsDirectory, system.TemporaryDirectory and system.CachesDirectory are valid choices.
[code]
local onComplete = function(event)
local photo = event.target
print( "photo w,h = " … photo.width … “,” … photo.height )
end
local outputFile = { baseDir=system.DocumentsDirectory, filename=“myfile.jpg”, type=“image” }
if media.hasSource( media.Camera ) then
media.show( media.Camera, onComplete, outputFile )
else
native.showAlert( “Corona”, “This device does not have a camera.”, { “OK” } )
end
[/code] [import]uid: 199310 topic_id: 34232 reply_id: 136121[/import]