Last active
February 26, 2016 11:32
-
-
Save danielgomezrico/7bd49f92da760139b4d1 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
Hai. Lovely blog! It would be better if you can add link of blogpost in gist file description. it will be very useful