Jump to content
Sign in to follow this  
dexto

TCPSend

Recommended Posts

dexto

Is there a way to make sure TCPSend will not encode "0x3132" for example into "0x307833313332" which is binary for "0x3132'?

Share this post


Link to post
Share on other sites
dexto

Are you sending it as a string "0x3132" or 0x3132 ?

That might be the issue... let me dig in the code a little.

Edit:

Wouldn't 0x3132 be interpreted as hex?

EDIT:

isBinary saves the day. Thanks

if not IsBinary($data) then $data=Binary($data)
Edited by dexto

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×