nocow Posted June 22, 2006 Posted June 22, 2006 Hello im working on a project where i have to send files through winsockets, i have made my own protocol with headers etc and it work perfectly when its only ASCII but it totaly miss up when i try send a binary file, ive try some with _HexToString and _StringToHex but no good result, what im asking for is not a script on how to do it, but simply how should i change binary or just send the binary through a socket... Thanks
nocow Posted June 22, 2006 Author Posted June 22, 2006 So take the binary intro a string binary thing and then after send it then after that recover it as binary when tcprecv ? thats to complex for me can you help me out? and is it a problem that i do For $i = 1 to $size $data = $data & tcprecv($tcp,1) Next for get each byte becus its large and cant work with tcprecv($tcp,$AndLot) regards
nocow Posted June 23, 2006 Author Posted June 23, 2006 ... anybody ? Ive read in AutoIt Help - Beta Remarks If binary data is received it can be converted to a hexadecimal string with the String function. But i try that too it just seem like crashing and do nothing
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now