Muhammad Usman
08/31/2022, 5:52 PM@GET("users/profile/photo")
suspend fun getProfilePhoto(@Header("Authorization") authorization: String ): ResponseBody
val response = getClient().getProfilePhoto()
val bytes: ByteArray = response.bytes()
val bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.size)
Glide.with(this@MainActivity).load(bitmap).into(image)
Thanksrkeazor
08/31/2022, 9:50 PM