Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

261
Views
I have a js drawing canvas with a save button. How can I restore image in mysql?

my canvas code is:

            saveBtn: function () {
                var saveBtn = '<img height="20" src="data:image/png" />'
                $("<span class='simple-paint-tooltip simple-paint-buttons simple-paint-save-btn'   title='Save canvas as image' />").appendTo($(".simple-paint-top-tools"));
                $(".simple-paint-save-btn").html(saveBtn).on("click", function () {
                    var browser = method.getBrowser();
                    if (browser == "IE" || browser == "Edge") {
                        var blob = method.canvas.msToBlob();
                        window.navigator.msSaveBlob(blob, 'Tooska_visit.png');
                    } else {
                        method.canvas.toBlob(function (blob) {
                            var objectUrl = URL.createObjectURL(blob);
                            var a = document.createElement('a');
                            a.href = objectUrl;
                            a.download = "Tooska_visit.png";
                            a.target = '_blank';
                            document.body.appendChild(a);
                            a.click();
                            document.body.removeChild(a);
                            window.URL.revokeObjectURL(objectUrl);
                        });
                    }
                });
            }

image save as a png file. I want save that in mysql database. How can I send data to mysql?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!