Skip to content

loadBase64Data not loading back the drawing #3

Open

Description

@MarcosVel

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

  1. mym0404 commented on Oct 11, 2025

    @mym0404
    Owner

    You want to save base64 data as png or jpeg with getBase64JpegData or getBase64PngData and load with loadBase64Data.

    BTW, png or jpeg base64 data is not very difference with the original base64 data except image prefixes are appended (code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions