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