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

wasm: close base64 encoder #22

Merged
merged 1 commit into from
Nov 14, 2023
Merged

wasm: close base64 encoder #22

merged 1 commit into from
Nov 14, 2023

Conversation

oncilla
Copy link
Owner

@oncilla oncilla commented Nov 14, 2023

Close the base64 encoder before returning the buffer. This ensures that all the bytes are written to the buffer. Without this, the last few bytes may be missing, resulting in a corrupted image. Usually, this would only corrupt the checksum, and the image would still be displayed fine. However, some applications do not like this (e.g., slack).

Close the base64 encoder before returning the buffer. This ensures that
all the bytes are written to the buffer. Without this, the last few
bytes may be missing, resulting in a corrupted image. Usually, this
would only corrupt the checksum, and the image would still be displayed
fine. However, some applications do not like this (e.g., slack).
@oncilla oncilla merged commit 99e5fea into main Nov 14, 2023
1 check passed
@oncilla oncilla deleted the close-stream branch November 14, 2023 22:38
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

Successfully merging this pull request may close these issues.

1 participant