https://kotlinlang.org logo
#ktor
Title
# ktor
v

Voronin Sergey

06/21/2021, 8:57 AM
Hi! Can u help me? I use ContentConverter for get files over Graphql. Can i convert input ByteReadChannel to PartData using default tooling? Now i use CIOMultipartDataBase for it, but he have @InternalAPI annotation. How i can do right?
a

Aleksei Tirman [JB]

06/21/2021, 11:20 AM
Why can't you use the ApplicationCall.receiveMultipart method? If you want to just parse bytes into
PartData
without working with a request then why do you need
ContentConverter
?
v

Voronin Sergey

06/21/2021, 11:38 AM
Because i also receive simple json object over this link (Graphql request). Can i split processing request for json type and Multipart?
I can use "Content-type" header for split request, but i also want know alternatives
2 Views