Skip to content

Conversation

@prakhar1989
Copy link
Collaborator

No description provided.

if (typeof value === 'string') {
inputValue = value;
} else if (value instanceof Uint8Array) {
inputValue = btoa(String.fromCharCode.apply(null, value));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably need to update everything up the stack as well to support base64 blobs, and indicate (e.g. via filename suffix like src/foo.png:base64) that a file is binary.

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.

2 participants