I tested on a 60 bytes .bmp file and i already had one byte different,
ReadFile was called with a buffer length of 4096, and offset 0, my
content had a length of 60 bytes (so it's ok), and i returned
readBytes = 60.
So i look at my HTTP Request, and i was using StreamReader get the
content as a String and then convert it as Byte[], that's why i some
bad bytes.
If anybody has the same problem, just use BinaryReader.
Btw i have another problem, when i move a file (for example move
"something.txt from root to directory "Dir", it works, but when i
refresh the root, i have a second "Dir")
It seems CreateDirectory is called when i move a file, any idea ?
> If you see the file by a binary editor and compare with a complete file,
> you may find something.
>
> What is the type of "content"? Is the length in byte?
> You don't check the return value of read, is that ok?
>