readBytes

fun readBytes(intent: Intent, activity: ComponentActivity): ByteArray?

Resolves the payload URI from the intent and reads it (size-limited), returning the bytes or null when no readable payload is present.