I want to try this in order to discard a possibility of why my code is not working as expected. Thanks in advance!
Asked
Active
Viewed 478 times
-2
-
You cannot [prove a negative](https://en.wikipedia.org/wiki/Philosophic_burden_of_proof#Proving_a_negative). – Black Frog Jan 08 '15 at 17:57
-
What's that even supposed to mean...? – SantLev Jan 08 '15 at 20:08
1 Answers
0
Just pass steam that has CanWrite
set the way you want in constructor. MemoryStream
is an option as it allows both R/O and R/W modes.
I.e. if you just need some result use following (indeed you can pass real data as buffer too):
return new FileStreamResult(new MemoryStream(new byte[4], writable:false));

Alexei Levenkov
- 98,904
- 14
- 127
- 179