Re: Stream Writer

From: Charles A. Lackman (Charles_at_CreateItSoftware.net)
Date: 10/18/04


Date: Mon, 18 Oct 2004 12:19:44 -0700

Hello I am retrieve binary data from a web service and need to write it to
disk. It will be a setup file or replacement files I have made for
applications.

This is where I am lost

the memory stream is filled.

ms.Seek(0, SeekOrigin.Begin)
Dim MyWriter as StreamWriter
MyWriter = New StreamWriter("C:\Test.Setup")

ms.read
mywriter.write(ms)

ms.close
mywriter.close
This does not work, what am I missing,

Thanks
Chuck

"Charles A. Lackman" <Charles@CreateItSoftware.net> wrote in message
news:eaH2vRUtEHA.3772@TK2MSFTNGP10.phx.gbl...
> Hello,
>
> I have created a MemoryStream that is holding Binary Data. How do I get
> the Data out of the Memory Stream into a file on my hard drive. All the
> examples I have seen for a MemoryStream write the contents to the console.
>
> Thanks
> Chuck
>



Relevant Pages

  • Re: Stream Writer
    ... Hello I am retrieve binary data from a web service and need to write it to ... It will be a setup file or replacement files I have made for ... Dim MyWriter as StreamWriter ... > the Data out of the Memory Stream into a file on my hard drive. ...
    (microsoft.public.dotnet.faqs)
  • Re: Stream Writer
    ... Hello I am retrieve binary data from a web service and need to write it to ... It will be a setup file or replacement files I have made for ... Dim MyWriter as StreamWriter ... > the Data out of the Memory Stream into a file on my hard drive. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Stream Writer
    ... Hello I am retrieve binary data from a web service and need to write it to ... It will be a setup file or replacement files I have made for ... Dim MyWriter as StreamWriter ... > the Data out of the Memory Stream into a file on my hard drive. ...
    (microsoft.public.dotnet.framework)
  • Re: Stream Writer
    ... Hello I am retrieve binary data from a web service and need to write it to ... It will be a setup file or replacement files I have made for ... Dim MyWriter as StreamWriter ... > the Data out of the Memory Stream into a file on my hard drive. ...
    (microsoft.public.dotnet.framework.windowsforms)