Skip to content

btoa base64 encoding is removed in thumbnail route#386

Merged
kdid merged 1 commit into
deploy/stagingfrom
hotfix-thumbnail
Jun 2, 2026
Merged

btoa base64 encoding is removed in thumbnail route#386
kdid merged 1 commit into
deploy/stagingfrom
hotfix-thumbnail

Conversation

@kdid

@kdid kdid commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

The thumbnail routes were broken in production. The btoa(String.fromCharCode(...new Uint8Array(buf))) converts the image binary to a base64 string, but since content-type is image/jpeg, the browser tries to interpret that base64 text as raw image bytes and renders garbage. Passing buf (the ArrayBuffer) directly sends the actual binary data the browser expects.

@kdid kdid merged commit dedf7e2 into deploy/staging Jun 2, 2026
2 checks passed
@kdid kdid deleted the hotfix-thumbnail branch June 2, 2026 22:11
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