Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting String to binary?

Status
Not open for further replies.

DTJeff

Programmer
Dec 9, 2003
37
GB
Hi,

I have a query which returns me some data like:

ID StringData
---------------------------
0 11000111000010000111110101010001
1 01110001010101111000010101000111

How can I convert the StringData (which is actually binary only represented by String ones and zeros) into a binary image (to insert back into the db into an image datatype field)?

Thanks

Jeff.
 
What possible system could be handing you binary data as strings of ones and zeroes?

Write a function that converts the string to a binary data type one character at a time. That's the best you can do.

[COLOR=#aa88aa black]Cum catapultae proscriptae erunt tum soli proscript catapultas habebunt.[/color]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top