To send a byte array from JavaScript to Python in Frida:
First, convert the byte array into a base64 string: const byteArrayBase64 = Java.array('byte', byteArray).toString();
second. send the base64 string using the send() function: send({ type: "bitmap", data: byteArrayBase64 });
On the Python side, you can decode the base64 string back into a byte array using base64.b64decode() and save it.
This approach ensures that you can successfully transfer binary data between JavaScript and Python while maintaining compatibility across both environments.
good luck!