Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printBitmap large file not working #78

Open
tahahaz1374 opened this issue Jul 6, 2023 · 0 comments
Open

printBitmap large file not working #78

tahahaz1374 opened this issue Jul 6, 2023 · 0 comments

Comments

@tahahaz1374
Copy link

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,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant