0

I have an ASP.NET Core (RC2) WebApi project, and for one of the APIs, I need to take in a zip file, ideally as a Stream, and then return another zip file, again ideally as a stream. Is this possible?

Right now my web api gets and returns a base 64 encoded string... I feel using Streams would be much more efficient.

Tseng
  • 57,187
  • 13
  • 181
  • 194
Zeus82
  • 5,485
  • 8
  • 46
  • 75

1 Answers1

0

This answer shows how to access the HTTP stream from within a Controller. You could probably adapt it. Writing to Output Stream from Action

Community
  • 1
  • 1
PhillipH
  • 6,031
  • 1
  • 14
  • 25