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

What's the idiomatic way of dealing binary data? #648

Open
Louis-Tian opened this issue Apr 3, 2024 · 1 comment
Open

What's the idiomatic way of dealing binary data? #648

Louis-Tian opened this issue Apr 3, 2024 · 1 comment

Comments

@Louis-Tian
Copy link

Say for example, we use piston to process some images. what's the most idiomatic way of passing the image into the Piston and how to get it back after the processing? Is this supported at all right now?

@Brikaa
Copy link
Member

Brikaa commented Apr 3, 2024

To pass it, encode it as base64 and specify files[].encoding to be 'base64'

To get it back, I think our only option is to output it as base64 in the running submission, and decode the result from stdout

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

2 participants