Jump to content


Help Converting JSON back to an image

  • Please log in to reply
2 replies to this topic

#1 simeonC

  • Members
  • PipPipPip
  • Advanced Member
  • 48 posts

Posted 12 July 2013 - 09:34 PM

I have some JSON data that I retrieved from my database which is suppose to represent customers signatures. However I can now capture it but I cannot display it back on to the canvas field because i do not know how..

Is there anyone out there that know how to accomplish this task in the  most simpliest way..

I am currently reading

document from -- since it is his program


but I cannot seem to get it done


Any help would be appreciated Thank you.

#2 kicken

  • Gurus
  • Wiser? Not exactly.
  • 3,395 posts
  • LocationBonita, FL

Posted 13 July 2013 - 03:46 AM

There is an example right there on the page you linked:
Where sig is the JSON data from your database. Have PHP echo out your JSON to a sig variable and then use the line above.

var sig = <?php echo json_encode($jsonFromDb); ?>;

Did I help you out? Feeling generous? I accept tips via Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7
Kicken's World⦄ ⦃Recycle old CD's

#3 simeonC

  • Members
  • PipPipPip
  • Advanced Member
  • 48 posts

Posted 13 July 2013 - 01:06 PM

Well I would love to mark this as answer however I did try all of these and the signature has yet to be displayed.. If anyone can experiment with this and see if you can get it to show let me know.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users