in reply to Reconstruct binary data saved with unpack("H*", $b)

I think the solution is to use u template (uuencoding)

The problem with your sample data is it doesn't come in pairs -- this is where the null is coming from, its padding -- H* demands pairs

  • Comment on Re: Reconstruct binary data saved with unpack("H*", $b)