toDataURL Base64

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
awmartin
New User
Posts: 4
Joined: Thu Apr 16, 2020 7:31 am
First Name: wendy
Last Name: martin
Company Name: Lumbercore
Phone: 8024767618
Address 1: 34 valley view cir
City: barre
State / Province: Vermont
Zip / Postal Code: 05641
Country: United States
Contact:

toDataURL Base64

Post by awmartin »

I have a Topaz signature pad that i am trying to incorporate into my Genie/PUI application.
Right now the process goes something like this....
My screen has in iframe that links to the Topaz html which collects the signature.
I have used the canvas to translate toDataURL and then use that to populate an image that is shown on my screen.
That all works great. I have the Base64 string which I am passing back to my RPG program which takes that, and uses Base64_decode to get a new string that can be saves as an image to the IFS.
Confused yet? Haha
So this process works about 1/2 of the time. The image on the IFS is correct and life is good.
However, the other 1/2 of the time, the image on the IFS is a blank blue box.
Does anyone know what may be causing this? The image on my screen looks just fine and when i capture the Base64 and use online translators, it looks ok there too.
Thanks for any ideas!
Wendy
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: toDataURL Base64

Post by Scott Klement »

All I can guess is that something is wrong in the image file.

Its hard to guess what might be wrong with the code as I have never seen it.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests