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

Jolas

06/03/2020, 3:50 AM
Hi guys, I have a kotlin multiplatform project that is used as a module in iOS app and Android app to act as Data Repository. I am trying to implement a method to upload files in this KMP Module that can be accessed from iOS app code and Android App Code. Is there any documented way or some blog posts that help this scenario?
e

edenman

06/03/2020, 5:55 AM
same as any other HTTP request, just set your
HttpRequestBuilder.body
to
ByteArrayContent(bytes, ContentType.parse(contentType))