Skip to content

Commit

Permalink
Merge pull request #846 from ob-juliandixon/master
Browse files Browse the repository at this point in the history
fix: error with returning image on android
  • Loading branch information
navaronbracke authored Nov 2, 2023
2 parents eaf10b1 + ae9cccf commit 45b027a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,16 @@ class MobileScanner(
val stream = ByteArrayOutputStream()
bmResult.compress(Bitmap.CompressFormat.PNG, 100, stream)
val byteArray = stream.toByteArray()
val bmWidth = bmResult.width
val bmHeight = bmResult.height
bmResult.recycle()


mobileScannerCallback(
barcodeMap,
byteArray,
bmResult.width,
bmResult.height
bmWidth,
bmHeight
)

} else {
Expand Down

0 comments on commit 45b027a

Please sign in to comment.