toDataURL Base64
Posted: Thu Apr 29, 2021 8:19 am
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
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