JOHSE
09/11/2019, 8:51 PMBrian
09/11/2019, 9:32 PMJOHSE
09/12/2019, 2:32 AMBrian
09/12/2019, 1:50 PMimageView.drawable.toBitmap()
, and then use the second link above to create a file from that bitmapJOHSE
09/12/2019, 9:49 PMBrian
09/13/2019, 1:56 PMJOHSE
09/13/2019, 3:43 PMBrian
09/13/2019, 3:54 PMval file2 = File(context!!.cacheDir, selectedPath)
or somewhere else?imageView.drawable.toBitmap()
method combined with this? https://stackoverflow.com/questions/45828401/how-to-post-a-bitmap-to-a-server-using-retrofit-androidJOHSE
09/13/2019, 3:59 PMBrian
09/13/2019, 4:03 PMProgressRequestBody
is, given the other steps, i think that should be RequestBody.create(MediaType.parse("image/*"), file2)
JOHSE
09/13/2019, 4:10 PMBrian
09/13/2019, 4:16 PMselectedFileUri
match?JOHSE
09/13/2019, 4:17 PMBrian
09/13/2019, 4:54 PMJOHSE
09/13/2019, 5:01 PM