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
Can I convert base64 image string into base30 #98
Comments
@dnsahoo Were you able to convert Base64 to Base30? I am running into a similar issue |
How about if you convert to image directly from Base 64 with this... public BufferedImage converToImageFromBase64(String dbBase64) { |
hmm...Thanks for this suggestion. I would need to call an API that takes in Base30. Could you please suggest how to convert BufferedImage to Base30? |
How about this... public BufferedImage converToImage(String dbBase30) { |
Sorry that is all I got since this is something I programmed about 8 years ago.... |
Thanks I will take a look to see how i can tweak. The end result i need is Base30. |
Appreciate your time and effort! |
👍 |
Hi,
I have a base64 image string (for example: data:image/png;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ.........)
and want to convert into base30 format (data:image/jsignature;base30,9MZ455566565546564464464.....).
I have tried following code:
var sigdiv = $("#signaturex").jSignature({'UndoButton':true, 'width': 400, 'height': 100});
var sourceCanvas = 'data:image/png;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ.........';
var canvas = document.getElementsByClassName("jSignature");
var ctx = canvas[0].getContext("2d");
ctx.drawImage(sourceCanvas, 0, 0);
var data = sigdiv.jSignature('getData', "base30");
console.log(data);
Please suggest.
The text was updated successfully, but these errors were encountered: