Converting Hexadecimal in Binary
Dar Scott
dsc at swcp.com
Fri Jan 9 15:58:09 EST 2004
On Friday, January 9, 2004, at 12:48 PM, Alejandro Tejada wrote:
> I use this handler to convert a jpg embedded in
> an Adobe Ilustrator file (version 6 or 7) as
> Hexadecimal data in a binary image within Runrev.
Do these help?
-- hex(s) is s converted to hex
function hex s
get binaryDecode("H*",s,h)
return h
end hex
-- unhex(h) is the string equivalent of a hex sequence
function unhex h
return binaryEncode("H*",h)
end unhex
Dar Scott
More information about the use-livecode
mailing list