ol muser
asked on
storing binary infomration in a Unicodestring
what is the best way, if any, to store binary information in a rad studio unicodestring? I intend to transfer this to the database to a Oracle Varchar2 field.
UnicodeString sprint;
sprint.SetLength(2000);
for(int i=0;i<pBlob->cbData ;i++)
{
//pBlob->pbData[i] = bdata[i];
cout<<pBlob->pbData[i];
sprint[i+1]=pBlob->pbData[i];
}
I'd use some encoding. Try to google for base64, for example.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.