how to upload image byteArray/bitmap into server u...
# ktor
h
how to upload image byteArray/bitmap into server using ktor client?
p
h
@Pim I don't have the header. I got from third party library (https://github.com/onseok/peekaboo). It give you only byteArray or bitmap. So where do i get :
Copy code
Headers.build {
            append(HttpHeaders.ContentType, "image/png")
            append(HttpHeaders.ContentDisposition, "filename=\"ktor_logo.png\"")
        }
and sample code and respond I post here for reference: https://youtrack.jetbrains.com/issue/KTOR-7273/Ktor-client-failed-to-upload-file-image-byteArray