I’m grabbing an image from the device camera. I know it works because pathForFile returns a result. But display.newImage() can’t find it. I must be missing something obvious about how the simulator works here…
[code]-- Generating the image
media.show( media.Camera, onCameraComplete, { baseDir=system.TemporaryDirectory, filename=“CameraShot.jpg”, type=“image”} )
– Verifying the image is there
local path = system.pathForFile(“CameraShot.jpg”, system.TemporaryDirectory) – returns the full path
– Using the image
local myImage = display.newImage(“CameraShot.jpg”, system.TemporaryDirectory) – comes up nil[/code]
Any ideas? This is my first foray into the using the media library. [import]uid: 41884 topic_id: 34033 reply_id: 334033[/import]