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
Cast image to base64 #15
Comments
Use the import * as imageSourceModule from 'image-source';
drawingPad.getDrawing().then((res) => {
console.log(res);
let x = imageSourceModule.fromNativeSource(res);
let the64string = x.toBase64String("PNG");
}); Let me know if that helps 😄 |
Thank you. |
Just in case anyone is banging their head on the wall - the above code by bradmartin worked for me on android perfectly, however iOS in Nativescript Vue needed the x.toBase64String("PNG") to be lowercase as such: x.toBase64String('png') |
How do i cast the drawabled image into base64 string?
The text was updated successfully, but these errors were encountered: