I tried to load back a drawing after cleaning the canvas, with `loadBase64Data()`, but the drawing is not showing back on the canvas. Steps: - Draw something on the canvas - Pressed a button which saves the value of getBase64Data(); - Cleared the Canvas - Pressed another button that was suppose to load the drawing with `loadBase64Data(valueFromGetBase64Data)` -> nothing loads back on canvas. I've being able to save and show the drawing back only with `saveDrawing()` and `loadDrawing()`
Activity
mym0404 commentedon Oct 11, 2025
You want to save base64 data as png or jpeg with
getBase64JpegDataorgetBase64PngDataand load withloadBase64Data.BTW, png or jpeg base64 data is not very difference with the original base64 data except image prefixes are appended (code).