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

data_uri not returning the correct base64 encoded data #44

Open
yudho opened this issue May 23, 2014 · 3 comments
Open

data_uri not returning the correct base64 encoded data #44

yudho opened this issue May 23, 2014 · 3 comments

Comments

@yudho
Copy link

yudho commented May 23, 2014

data_uri method returns the base64 encoded version of something else, but not the blob/binary data.

@yudho
Copy link
Author

yudho commented May 23, 2014

I have fixed this in Pull Request #45
Please merge that. Thank you.

@JudyWu
Copy link

JudyWu commented Oct 28, 2015

When I called data_uri on the file, it returns this:

"data:image/jpeg;base64,IzxNb25nb2lkOjpHcmlkRnM6OkZzOjpGaWxlOjB4MDAwMDAwMDJlMzFlMTA+"

When I tried it on the browser, no image came out. Do you know what caused it or how I could fix it?

Thank you very much!

@MarcoLosito
Copy link

Hi,
I developed the same fix as yudho, please merge his code.

Also other people found the same problem:
http://stackoverflow.com/questions/33344217/cant-get-data-uri-working-in-mongoid-grid-fs-gem

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