Zaid-Ajaj / Fable.Remoting

Type-safe communication layer (RPC-style) for F# featuring Fable and .NET Apps
https://zaid-ajaj.github.io/Fable.Remoting/
MIT License
272 stars 54 forks source link

[Feature] support Stream -> Async<Stream> #285

Open Zaid-Ajaj opened 2 years ago

Zaid-Ajaj commented 2 years ago

Although byte[] -> Async<byte[]> gets the job done, it is not ideal because it means data is allocated in memory. Supporting Stream makes more sense for file uploads and downloads:

Fable doesn't support Stream but I think we can work around that using extension methods like the ones we have for byte[].

TypeInfo from SimpleJson needs to be extended so that it knows how to work with Stream