G
Guest
If you take this Byte Arra
Dim bytes() As Byte = {
207, 224, 135, 161, 253, 233, 111, 110, 99, 111, 100, 105, 110, 103,
32, 69, 120, 97, 109, 112, 108, 101
and write the byte array to disk
FileOpen(2, "f:\aaapicture_album\result.txt", OpenMode.Binary
FilePut(2, bytes
FileClose(2
then convert it into a string --->
'Convert the byte array back into a string
strEncryptedFile = textConverter.GetString(bytes
and write it to disk
FileOpen(3, "f:\aaapicture_album\result2.txt", OpenMode.Binary
FilePut(3, strEncryptedFile
FileClose(3
The result messes up the first 8 bytes. The hex equivalants got changed
What am I missing??
Richar
Dim bytes() As Byte = {
207, 224, 135, 161, 253, 233, 111, 110, 99, 111, 100, 105, 110, 103,
32, 69, 120, 97, 109, 112, 108, 101
and write the byte array to disk
FileOpen(2, "f:\aaapicture_album\result.txt", OpenMode.Binary
FilePut(2, bytes
FileClose(2
then convert it into a string --->
'Convert the byte array back into a string
strEncryptedFile = textConverter.GetString(bytes
and write it to disk
FileOpen(3, "f:\aaapicture_album\result2.txt", OpenMode.Binary
FilePut(3, strEncryptedFile
FileClose(3
The result messes up the first 8 bytes. The hex equivalants got changed
What am I missing??
Richar