Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
102 stars 0 forks source link

Allow attaching common filetypes to POST requests #1937

Open Nutcake opened 2 weeks ago

Nutcake commented 2 weeks ago

Is your feature request related to a problem? Please describe.

Currently there is no good way to extract a lot of content that can be generated in engine (images, audioclips) to external services in an automated fashion (ie with ProtoFlux). Doing this can be desireable in cases where this data needs to be processed in a way that's either too computationally expensive or too algorithmically complex to reasonably be done in-engine.

Take for example the popular SSTV system, which needs to upload captured image files to a third-party API to function. It does this by iterating over the pixels of the image one by one and encoding them to RGB-Hex values that get concatenated to a huge string which then gets attached to a POST request.

This approach is cumbersome, unneccesarily expensive and only makes sense for the small image-sizes required by that system. Additionally there is no known similar approach for audio files.

Describe the solution you'd like

Add additional ProtoFlux nodes which allow attaching the following data-types as a POST request body:

This functionality could additionally be extended to websockets.

Describe alternatives you've considered

The alternative is to convert the desired data to a string manually and send that with the POST String node, however:

Additional Context

No response

Requesters

Nutcake

epicEaston197 commented 2 weeks ago

This would be a ton of data for the post request node this might need to be split into its own separate node or wait until we have collections

ExoTheWicker commented 2 weeks ago

I can already think of the first thing I would do if this is added