How do i get the image? signature.getImageBase64() dont givr anything

How do i get the image?

signature.getImageBase64() dont givr anything

got it like this:

 byte[] decoded = signature.getImageBase64();
        Path path = Paths.get("/Users/nico/Downloads/datei.png").toAbsolutePath();
        try {
            Files.write(path, decoded);
        } catch (IOException e) {
            e.printStackTrace();
        }

Tip for some one how may have the same error: The line starts painting some centimeter next to the mouse.

Solution: dont add the widget directly to a FormLayout