I'd suggest using unpack.
In reply to Re: String to Byte array by Tux in thread String to Byte array by kpaxian25