Skip to content

Commit

Permalink
solving resizeImage function in android 12,13
Browse files Browse the repository at this point in the history
  • Loading branch information
BasemNasr committed Jul 3, 2023
1 parent 064a17f commit 66ad04e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ object UploadImages {
e.printStackTrace()
}
var out: FileOutputStream? = null
val filename: String = filePath + fileName
val filename: String = filePath?:""
try {
out = FileOutputStream(filename)
scaledBitmap!!.compress(Bitmap.CompressFormat.JPEG, 80, out)
Expand Down

0 comments on commit 66ad04e

Please sign in to comment.