(I get a `ByteReadChannel` from ktor)
# getting-started
a
(I get a
ByteReadChannel
from ktor)
d
I assume there exists a content type that you can use, and register a content comverter for it. Take a look at JacksonConverter and the jackson install function for it.
a
...no. The jackson parsing bit isn't the problem. I just need to know how to get a ByteArray or similar from
ByteReadChannel
. Once I have the data in memory, I can then a) hash it to check the HMAC, b) parse it with jackson as needed
m
Can’t you write all bytes to a ByteArrayOutputStream?