<Why is my app closing/breaking in the ViewModel w...
# stackoverflow
u
Why is my app closing/breaking in the ViewModel when I try to send this Multipart Post? I have been looking around for a month now at how to send a data class with an image to the server in Kotlin using Jetpack Compose. When I step through my app it makes it to the val call = retrofit.makeMultipartPost(id, title, price, description, imagePart, seller) line then closes. The Ktor backend is not getting hit when I try to send the Post. if(imageBitmap != null){ var multipartBody = bitmapToMultipart(imageBitmap) var id =...