Re: Stream Writer
From: Charles A. Lackman (Charles_at_CreateItSoftware.net)
Date: 10/18/04
- Next message: Charles A. Lackman: "Re: Stream Writer"
- Previous message: owyn: "RE: Error using Oracle ODP.NET from Web App on Windows 2003"
- In reply to: Charles A. Lackman: "Stream Writer"
- Next in thread: Jon Skeet [C# MVP]: "Re: Stream Writer"
- Reply: Jon Skeet [C# MVP]: "Re: Stream Writer"
- Messages sorted by: [ date ] [ thread ]
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
>
- Next message: Charles A. Lackman: "Re: Stream Writer"
- Previous message: owyn: "RE: Error using Oracle ODP.NET from Web App on Windows 2003"
- In reply to: Charles A. Lackman: "Stream Writer"
- Next in thread: Jon Skeet [C# MVP]: "Re: Stream Writer"
- Reply: Jon Skeet [C# MVP]: "Re: Stream Writer"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|