6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【2020年10月】Retrofitで Multipart アップロードする時に参考になる記事まとめ

Posted at

情報が揃っている記事がなかったので、ここに整理します。

android - Retrofit(2.0 beta2) Multipart file upload doesn't work - Stack Overflow

https://stackoverflow.com/questions/33473213/retrofit2-0-beta2-multipart-file-upload-doesnt-work
@Multipartが動かない時は↓これを使いましょう↓

Retrofit2でMultipartPOST - Qiita

https://qiita.com/satsukies/items/822db4f68094dad4951d
良記事!RequestBody.createが廃止になったので、その部分は↓を参考にしましょう

okhttp3 - RequestBody.create(contentType、content)非推奨

AndroidでのBitmap/JPEG/byte配列の相互変換 - Qiita

https://qiita.com/aymikmts/items/7139fa6c4da3b57cb4fc
アップロード時に色々変換する時に参考にしましょう

Androidでmultipartで画像とテキストを同時送信 - Qiita

https://qiita.com/hisakioomae/items/9588e41ead50bd62f186
RxJAVAを使ってる方はこれがわかりやすいかも!

6
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?