Re: Help With Using System.Text.Encoding To Download File
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Fri, 15 Sep 2006 20:02:58 +0100
<A_StClaire_@xxxxxxxxxxx> wrote:
I am using the following code to download multiple file types from a
server. .txt files transfer fine. however Word .doc files come
through garbled and I don't know enough about encoding to understand
why.
You shouldn't be useing an encoding at all. Word files are binary files
- Encodings are only to be used for plain text files. You should just
use Streams to read/write binary files.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: Help With Using System.Text.Encoding To Download File
- From: A_StClaire_
- Re: Help With Using System.Text.Encoding To Download File
- References:
- Help With Using System.Text.Encoding To Download File
- From: A_StClaire_
- Help With Using System.Text.Encoding To Download File
- Prev by Date: Re: BeginReceive return zero length buffer when run ,and work correctly when use step by step debug mode
- Next by Date: Re: How does one check if an object's reference is NULL?
- Previous by thread: Re: Help With Using System.Text.Encoding To Download File
- Next by thread: Re: Help With Using System.Text.Encoding To Download File
- Index(es):
Relevant Pages
|