Skip to content

Hi. Does the socket support binary data transfer? #565

Answered by joffrey-bion
lemkoleg asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, binary data is supported. ByteString is binary. It is to ByteArray what String is to CharArray. It's a read-only group of bytes, unlike ByteArray which is mutable.

If you really need to, you can get a ByteArray from a ByteString using toByteArray().

Replies: 8 comments 23 replies

Comment options

You must be logged in to vote
10 replies
@joffrey-bion
Comment options

@joffrey-bion
Comment options

@lemkoleg
Comment options

@lemkoleg
Comment options

@joffrey-bion
Comment options

Answer selected by joffrey-bion
Comment options

You must be logged in to vote
3 replies
@joffrey-bion
Comment options

@lemkoleg
Comment options

@joffrey-bion
Comment options

Comment options

You must be logged in to vote
2 replies
@joffrey-bion
Comment options

@lemkoleg
Comment options

Comment options

You must be logged in to vote
1 reply
@lemkoleg
Comment options

Comment options

You must be logged in to vote
1 reply
@lemkoleg
Comment options

Comment options

You must be logged in to vote
1 reply
@joffrey-bion
Comment options

Comment options

You must be logged in to vote
5 replies
@joffrey-bion
Comment options

@joffrey-bion
Comment options

@lemkoleg
Comment options

@joffrey-bion
Comment options

@lemkoleg
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants