I'm trying to execute a pair of Oracle stored procedures that
encrypt/decrypt a character string using Oracle's obfuscation package. Each
stored procedure has an input and an output parameter. One procedure
encrypts a string, the other decrypts a string.

The problem is that when I encrypt a value the procedure executes without
incident, but the return string is losing it's high-order bits. What I get
back is a value that looks encrypted, but when I feed the string to the
decryption procedure I don't get my original value back. When we compare
the string returned by my .Net function to the string returned when
executing the sp under SQL*Plus we see that several characters are 80h
"smaller" in the .Net functional return than they are when the sp is
executed under SQL*Plus.

The database is Oracle 9i, running with an eight bit character set, but I
don't see any property in the .Net OracleClient that allows me to specify
that I expect 8 bit characters back from Oracle.

Can anyone shed any light on this for me?
How can I get .Net to understand that Oracle is returning 8 bit characters?

Thanks much,
Brad