M
moondaddy
Using vb.net I'm trying to send encrypted data as a parameter in a
webservice. I have sample code that takes a text file, encrypts it and
saves it as a text file, then it also successfully decrypts the encrypted
text file and saves that data in a 3rd text file. Great, the model works.
Now I need to take the encrypted text file and convert it to a string so I
can send it as a string parameter in a web service. The problem is that in
the process of reading the encrypted data from the file into a string
variable its getting changed somehow and therefore can't be decrypted. The
code that's working (before attempting to read the encrypted file to a
string var) is from this KB article: HOW TO: Encrypt and Decrypt a File by
Using Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;301070&Product=vbNET
I've killed 2 days trying to figure this out and have trying variations
using the UnicodeEncoding, ASCIIEncoding, UTF8Encoding classes in different
places in the code to no avail. How can I successfully convert the
encrypted file into a string var, or how can I simply send the encrypted
file as the parameter?
Thanks!
webservice. I have sample code that takes a text file, encrypts it and
saves it as a text file, then it also successfully decrypts the encrypted
text file and saves that data in a 3rd text file. Great, the model works.
Now I need to take the encrypted text file and convert it to a string so I
can send it as a string parameter in a web service. The problem is that in
the process of reading the encrypted data from the file into a string
variable its getting changed somehow and therefore can't be decrypted. The
code that's working (before attempting to read the encrypted file to a
string var) is from this KB article: HOW TO: Encrypt and Decrypt a File by
Using Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;301070&Product=vbNET
I've killed 2 days trying to figure this out and have trying variations
using the UnicodeEncoding, ASCIIEncoding, UTF8Encoding classes in different
places in the code to no avail. How can I successfully convert the
encrypted file into a string var, or how can I simply send the encrypted
file as the parameter?
Thanks!