Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback is returning the file path as a string. #52

Open
Formability opened this issue Dec 6, 2016 · 2 comments
Open

Callback is returning the file path as a string. #52

Formability opened this issue Dec 6, 2016 · 2 comments

Comments

@Formability
Copy link

Formability commented Dec 6, 2016

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.

@Alkashi
Copy link

Alkashi commented Dec 19, 2016

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.

@dr-andy
Copy link

dr-andy commented Apr 21, 2017

Same here. It returns only the path in mediaArgs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants