-
-
Save sreereddymenon/c863f964f635408750f7 to your computer and use it in GitHub Desktop.
Android / Retrofit - how to upload a file without multipart (as binary) for Kotlin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface UploadService { | |
@Headers("Content-Type: image/jpeg") | |
@POST("/files") | |
fun uploadFile(@Body file: TypedFile): Observable<UploadedFile> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment