Increase buffer size.  Use output buffer size as limit for hex2bin