https://kotlinlang.org logo
#getting-started
Title
# getting-started
a

Alexandre A Barbosa

01/10/2023, 10:09 PM
hey channel. I am still searching for a good Kotlin course to learn how to work with Kotlin Framework Collections and Streams. Could someone please help me to convert the
java.util.List<com.google.protobuf.ByteString>
to ByteArray like Byte[]?
j

Johann Pardanaud

01/10/2023, 10:53 PM
you can convert a
ByteString
by calling
.toByteArray()
however it is up to you to know how the
List<ByteArray>
should be converted to a single
ByteArray
3 Views