Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Base64 String

  1. #1
    Regular Coder
    Join Date
    Jun 2009
    Thanked 2 Times in 2 Posts

    Base64 String

    I am using a script that turns a canvas into a base64 png string, but it is 17,000+ characters long. I was planning to take that string that was in JS and use ajax to put it into the database, but I can't send that many characters in a url for php to use it. I am completely lost trying to figure out how to save a canvas image to my server without having to manually right-click->saveas a converted image.

    This is where I got the scripts: Saving canvas data to image file

    From that link you can convert a canvas image to a png then save it manually or you can automatically save it to your computer, but I want to save it to my server.
    Last edited by Ndogg; 04-08-2014 at 06:51 AM.

  2. #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Sydney, Australia
    Thanked 932 Times in 919 Posts
    you can use POST with ajax calls - you don't have to use GET
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  3. Users who have thanked felgall for this post:

    Ndogg (04-08-2014)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts