I have an encoding problem.
On a Desktop Application (Full Framework) I am reading data from a File using FileStream.
I am reading 10'000 Bytes with fileStream.Read(.....)
Then I am converting it using Encoding.UTF8.GetString to a string.
Then I am adding some value to it and using Encoding.UTF8.GetBytes I am converting it back to a ByteArray which I then send to Silverlight.
There I am reading Bytes from a Stream, but when I then convert it back to UTF8-String, I get something other than what I had before.
Only if I convert it to Base64 on both sides, it is working.
Is it because some File Data cannot be stored in UTF8?