You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to configure an endpoint to return binary data, for example, in base64?
You could try the unix pipe | your command to base64. For example, echo "Hello" | base64. Might need to put your command in a custom script (.sh/.py/etc) to use pipes though (refer to this example).
You may be able to use a decorator to achieve this too (example).
First of all, thank you for this project! It was very easy to set up a couple of endpoints.
Now, I am trying to create another endpoint for a command which returns binary output and I'm getting an error:
Is there a way to configure an endpoint to return binary data, for example, in base64?
The text was updated successfully, but these errors were encountered: