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

Patrick Doering

01/25/2021, 6:35 PM
I have a request with rest assured and want to Transfer it to ktor but no Solution worked. I hope somebody can help me. MultiPartSpecification multiPartSpec = new MultiPartSpecBuilder(zipBytes(„fileinput.xml", bodyXmlAsString.getBytes())) .controlName("file") .fileName("myfile.zip") .mimeType("application/zip") .charset(StandardCharsets.UTF_8) .build(); I don‘t know how to do this with ktor.
t

turansky

01/25/2021, 9:15 PM
Is it related to KTOR-1915?
p

Patrick Doering

01/25/2021, 9:20 PM
For the JS ok. Are there also problems with Java?
t

turansky

01/25/2021, 10:24 PM
No. I use fetch on client side and Ktor on server. Do you need server example?
p

Patrick Doering

01/26/2021, 4:39 AM
I would need a client side example.
t

turansky

01/26/2021, 5:10 AM
Upload.kt
p

Patrick Doering

01/27/2021, 4:54 AM
Thank you. It is working now.
😉 1
3 Views