Send bytes instead of Strings with LuaSocket or other

I am using LuaSocket to send data back and forth between a computer. This works fine for strings but I can’t see how to send actual bytes of data across the socket?

There surely has to be a way to do this as it is a very common thing to do. Any help?

Also if there is another library for doing this that is fine as I have no ties to LuaSocket. [import]uid: 5886 topic_id: 16473 reply_id: 316473[/import]

Make the string a series of bytes that you want to send and then convert the received string back to bytes.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 16473 reply_id: 61491[/import]

Thanks for the replay JayantV but I don’t have control over the server application and it is expecting bytes. [import]uid: 5886 topic_id: 16473 reply_id: 61494[/import]

anyone else got any ideas? [import]uid: 5886 topic_id: 16473 reply_id: 61775[/import]

I have the same question with thesmileman.
How to Send bytes instead of Strings with LuaSocket? [import]uid: 152929 topic_id: 16473 reply_id: 109263[/import]