Re: FileStream question

"Marsh, Drew" <[email protected]> Tue, 25 Jun 2002 13:06:46 -0400
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <[email protected]>
Jeff Roberts [mailto:[email protected]] wrote:

> Thanks again !  I need to read a "binary" file into a byte
> array, can I do this = with the StreamReader class ?  I don't
> see a BinaryStreamReader Class !

If it's binary, then you can read it by just using the Stream, which happens
to be a NetworkStream[1] IIRC, returned from the call to
WebRequest::GetResponseStream.

HTH,
Drew

[1]
http://msdn.microsoft.com/library/?url=/library/en-us/cpref/html/frlrfSystem
NetSocketsNetworkStreamClassTopic.asp?frame=true


[ .NET MVP | weblog: http://radio.weblogs.com/0104813/ ]

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.