Skip to content

printBitmap large file not working #78

@tahahaz1374

Description

@tahahaz1374

Hi

I'm developing an application for Sunmi v2 and I use the react-native-sunmi-printer package to print, beside that I use a package called Viewshot to capture a photo of the content to be printed then convert it to base64, the problem is that when the content size is too large the printer stops printing.

const imageUri = await data.current.capture({
     result: 'tmpfile',
      width: 1000,
});

const base64 = await fs.readFile(imageUri, 'utf8');

await SunmiV2Printer.printBitmap(
      base64,
      viewShotStyle.width + 50,
       viewShotStyle.height + 50,
);

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