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

base64: true not work in Android, returns file:/// uri scheme #67

Open
brcontainer opened this issue Mar 31, 2019 · 4 comments
Open

base64: true not work in Android, returns file:/// uri scheme #67

brcontainer opened this issue Mar 31, 2019 · 4 comments

Comments

@brcontainer
Copy link

base64: true not work in Android, returns file:/// uri scheme, code:

            (<any>window).ImageResizer.resize({
                uri: url,
                quality: 90,
                width: 320,
                height: 240,
                base64: true
            }, (data) => {
                  console.log('RESPONSE', JSON.stringify(data));
            }, (err) => {
                  console.log('ERROR', JSON.stringify(err));
            });

Is returned a url like this: file:///storage/emulated/0/1554074577205.jpg

@jvkxhola
Copy link

jvkxhola commented Apr 1, 2019

Bad news. Apparently, returning base64 is only possible on IOS

If you check the header it says:

    /**
     * Whether or not to return a base64 encoded image string instead of the path to the resized image.
     * iOS only
     */
    base64?: boolean;

@brcontainer
Copy link
Author

@jvkxhola you're right, the problem is that you already have support for Android, see: 100e874 (31 Jul 2018)

But so far the author has not published the version "0.2.1" or "0.3.0", it is only in the master branch.

See code details:

Related: #66

@mvzulu
Copy link

mvzulu commented Jun 11, 2019

Hi guys, ran into the same problem, getting an update to this any time soon? thanks

@brcontainer
Copy link
Author

brcontainer commented Jun 14, 2019

Hi guys, ran into the same problem, getting an update to this any time soon? thanks

temporarily try: #66

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