Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1367

Stream byte array into chunks

$
0
0

Hey guys,

I have a quite big byte array which I want to stream, but in chunks of n bytes.
I want to get it as Stream of ByteString in the end.

Maybe something like

Source<ByteString,NotUsed> source = ByteString.fromArray(byteArray,chunks)

I’m looking for a fast solution to chunk it.
Is there maybe an existing solution?

Thank you
Sigurd

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1367

Trending Articles