bitmap From Bytes
Decodes a byte array into an ImageBitmap using the Android platform's BitmapFactory.decodeByteArray.
This method provides a safe decoding wrapper that catches and handles potential exceptions (e.g., IllegalArgumentException for malformed data or OutOfMemoryError) by returning null instead of crashing the application.
Return
A ImageBitmap representation of the data, or null if the data is invalid or cannot be decoded.
Parameters
byte Array
The raw, encoded byte array representing the image data.