Encrypting and Decrypting

XerVision

Member
Licensed User
I encrypted two files in my program and was able to embed them into one file. I then clodes my program and reopened it. I retrieved the embedded files and then decryoted them. This worked well. However, I was not able to reencrypt the decrypted files due to an overbounds error. (Note I am using the encrytion code that Was placed on the forum a few weeks ago.)

This is the error that I am getting:
c = reader.ReadBytes(data(),buff_size)
Error Description: and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
huh?
At first, I was thinking that the file was too large. But I do not believe that is the case now.
 
Top