Skip to main content
Inspiring
April 14, 2014
Question

Cameraroll Error

  • April 14, 2014
  • 1 reply
  • 570 views

This is a wierd issue so hoping someone has a solution.  When I browseforimage using the Adobe cameraroll API using AIR 4, all is good most of the time.  BUT, on occasion, it generates an IOError.  It is always certain images.  For instance, I may download an image from the internet and when I pick it to add to my AIR app, it fails.  They have been PNG files but I tested other PNG's to work.  I thought it might be transparency in the png but others work fine.  Has anyone run into this issue?  The error message in AIR is unsupported type so are there different types of pngs that do not work for the cameraroll?  The native gallery shows them fine.  Ugh, so frustrating.  I will try latest AIR SDK tonight.

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
April 14, 2014

This is a known issue, and when the bugbase is working again you can go and vote for the bug report:

https://bugbase.adobe.com/index.cfm?event=bug&id=3655606

The problem happens when you try to load a picture that is in the Cloud somewhere. All you can do for now is to trap for the ioerror and then show an alert to the user to say that you can’t load remote pictures.

mola2alexAuthor
Inspiring
April 14, 2014

Actually that wasn't it.  I was downloading the image from the web to local so it wasn't the cloud thing.  I tried a different web browser and seems it was just Chromes compression proxy feature.  It makes images compressed into a different format.

mola2alexAuthor
Inspiring
April 16, 2014

I guess it compresses them to WebP.  The gallery app still shows it as a local image but it fails to load.  I will update my failure text I guess or hope no one downloads images from the web.