mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-21 09:48:36 +00:00
wip
This commit is contained in:
@@ -122,4 +122,9 @@ public class BitmapUtil {
|
||||
return output;
|
||||
}
|
||||
|
||||
public static byte[] toByteArray(Bitmap bitmap) {
|
||||
ByteArrayOutputStream stream = new ByteArrayOutputStream();
|
||||
bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
|
||||
return stream.toByteArray();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user