Open Formability opened 7 years ago
Hi all,
I have exactly the same pb. It was working like a charm with the previous version but I updated the ane to have the 64 bits support for an app update. And since this update I am not apple to retrieve the byteArray like before. Any suggestion ?
Thx.
Same here. It returns only the path in mediaArgs
I am using the following code on an iPad mini and the callback seems to be returning the path to the file but when I try to access it using a URLRequest its saying the URL is not found.
`if (AirImagePicker.getInstance().isCameraAvailable()) { AirImagePicker.getInstance().displayCamera(onImagePicked); }
public function onImagePicked(status:String, image:String):void { loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete); loader.load(new URLRequest(image)); }`
If I try to use either of the following I get type conversion errors.
public function onImagePicked(status:String, bmd:BitmapData, ba:ByteArray ):void
public function onImagePicked(status:String,imageArray:Array):void
The Docs say its supposed to return a BitmapData instance representing the image, and a ByteArray instance containing a JPEG representation of the image but this isn't the case.