As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
BASE64 to Blob, Angularjs, Android 4.3, Cordova 3.4
l
lawrencepn
started a topic
over 8 years ago
Hey Guys, has anyone found a workaround to decode images in BASE64 to blob so that we can upload via Kinvey? my function only works in Chrome, FF and Safai but fails on Android 4.3 webkit. I've also tried uploading an image as an arraybuffer which works and kinvey returns a success object with file name, size and metadata however the image is broken. Are there other alternatives you guys have explored maybe?
Not sure - if it are just small images (icons, avatars, etc.) is should be fine. If you’re thinking of displaying photos this way, I am not sure if that’s a good idea.
l
lawrencepn
said
over 8 years ago
Mark, thank you for the response. I've considered that, however, what would be the performance implications of this?
M
Mark
said
over 8 years ago
Last time I checked PhoneGap (Cordova) did not have a reliable way to do that. The best way, if your app is PhoneGap only, is to just upload the base64 data, and if you want to display the image you can use [Data URIs](https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs).
lawrencepn