Link to home
Start Free TrialLog in
Avatar of ol muser
ol muserFlag for United States of America

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];
   }

Open in new window

Avatar of grishav
grishav

I'd use some encoding. Try to google for base64, for example.
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial