btoa(String.fromCharCode(...new Uint8Array(buf))) exceeds V8's function argument stack limit for files larger than ~65k bytes. Process in 8k chunks instead to handle any file size. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
btoa(String.fromCharCode(...new Uint8Array(buf))) exceeds V8's function argument stack limit for files larger than ~65k bytes. Process in 8k chunks instead to handle any file size. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>