Created
May 10, 2022 16:27
-
-
Save QZLin/45c7162a728e20210d4b4a26d22ba071 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val stream = ByteArrayOutputStream() | |
bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream) | |
val byteArray: ByteArray = stream.toByteArray() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment