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

184
Views
Save canvas element as image in static website

I have a static website where users can go through a set of questions. At the end of each round, I want to store the result that is in a div as an image.

I was able to use html2canvas to convert the div into an image. I was also able to show the image in the page. But I would like to store these images. What's the best way to do it? I tried this approach.

I set up a very simple node.js API server with a POST endpoint. The parameter to this endpoint is the canvas.dataURL() string which I will store as an image file in the server.

The problem I am facing is that this string is very long and I get a 413 error when I test my API. What's the best way to work around this?

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!