Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda