piston icon indicating copy to clipboard operation
piston copied to clipboard

What's the idiomatic way of dealing binary data?

Open Louis-Tian opened this issue 1 year ago • 1 comments
trafficstars

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?

Louis-Tian avatar Apr 03 '24 05:04 Louis-Tian

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

Brikaa avatar Apr 03 '24 13:04 Brikaa