jpsider / RestPS

Simple ReST Framework for Powershell
MIT License
112 stars 30 forks source link

Handling binary data #84

Open Surowa opened 8 months ago

Surowa commented 8 months ago

Hi there,

I was wondering if it is also possible to use this framework to handle web requests involving binary data. Is it possible to set the content-type to e.g. multipart/form-data And get a request stream? A bit similar to this ASP.NET implementation: https://technowide.net/2012/09/01/upload-binary-data-http-post/

A way to do this may be by setting up a streamreader (https://stackoverflow.com/questions/67844289/powershell-api-using-streamreader) but I don't know if this tool's architecture would allow that.

jpsider commented 8 months ago

I don't think there is anything preventing from a cursory look. Do you want to give it a shot and submit a PR?

Surowa commented 7 months ago

I will give it a try!