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
  • 61,549
  • 15
  • 193
  • 205
Zeus82
  • 6,065
  • 9
  • 53
  • 77

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,182
  • 1
  • 15
  • 25