Hi,
This is what I'm doing:
Opening a file and reading it into a byte array.
GZipping the byte array to a RW FileStream.
Reading the GZipped Stream into a new byte array and 3DES encoding it.
Writing this new byte array back to the RW Stream.
Having written the file, if you then Debug.Print(m_OutputStream.Length.ToString()), the length reported is the same as the 3DES byte array which is of course correct. However, when the stream is closed it gains 10 bytes!
As a result of this it's breaking the encryption and so can't be unencrypted!
Any one got any ideas?
woogoo
This is what I'm doing:
Opening a file and reading it into a byte array.
GZipping the byte array to a RW FileStream.
Reading the GZipped Stream into a new byte array and 3DES encoding it.
Writing this new byte array back to the RW Stream.
Having written the file, if you then Debug.Print(m_OutputStream.Length.ToString()), the length reported is the same as the 3DES byte array which is of course correct. However, when the stream is closed it gains 10 bytes!
As a result of this it's breaking the encryption and so can't be unencrypted!
Any one got any ideas?
woogoo