DEV Community

Cover image for Save Large Canvas
Zevan Rosser
Zevan Rosser

Posted on

Save Large Canvas

Weirdly if you try to save a massive data URI to a file (> 15mb) it will just fail. In order to do this properly, you need to convert to a blob first and then save.

I encountered this at some point and learned of the solution from user doppelgreener over at stack overflow. Take a look at the post here.

See more stuff like this over @ Snippet Zone

Top comments (1)

Collapse
 
artydev profile image
artydev

Grenat thank you🙂

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay