J
jester
Hi! I have a very simple problem. I'm calling a method w/c
returns a Stream. How do I save the stream to file?
Currently what I do is (in pseudo-code):
returnedStream.Read(arrayOfBytes)
FileStream outFile = File.Create(...)
outFile.Write(arrayOfBytes)
//-Flush, close, cleanup, etc...
I don't think this is the best way of doing it. Any help
is greatly appreciated. Thanks
returns a Stream. How do I save the stream to file?
Currently what I do is (in pseudo-code):
returnedStream.Read(arrayOfBytes)
FileStream outFile = File.Create(...)
outFile.Write(arrayOfBytes)
//-Flush, close, cleanup, etc...
I don't think this is the best way of doing it. Any help
is greatly appreciated. Thanks