Hello,
I tried to load an image from a base64 data this way:
const buffer = Buffer.from(logo, 'base64')
const uint8Array = new Uint8Array(buffer)
const image = await Image.load(uint8Array)
printer = await printer.image(
image,
's8' // changing with image
)
but I get this error:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string or Uint8Array without null bytes. Received Uint8Array(6191)
Hello,
I tried to load an image from a base64 data this way:
but I get this error: