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

Share URL, decode the base64 and the result is badly encoded data that cannot be read #117

Open
j-d-carmichael opened this issue Jul 8, 2021 · 0 comments

Comments

@j-d-carmichael
Copy link

j-d-carmichael commented Jul 8, 2021

From the example, in the repo this is the extraction:

 openwith.load(intent.items[0], function (data, item) {
  console.log( atob(data))
});

I cannot see how to extract the data... the above log just outputs a string of unreadable content.

The item after load looks like this:

base64: "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BST0ZJTEUAAQ"
type: "application/octet-stream"
uri: "content://com.android.chrome.FileProvider/BlockedFile_319287714984242"

content://com.android.chrome.FileProvider/BlockedFile_319287714984242

I am completely new to android development so I can only assume that I have a wrong config? Should the URI be "BlockedFile"?

related: #102

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

1 participant