I’m near to solution but there’s always something between me and goal.
I’ve decided to encode image bytes using Java Base64 encoder in order to pass String into HaxeObject.callback.directly pass byte[] cause > 25 call JNI crash.
String byteString = Base64.encodeToString(responseBody,Base64.DEFAULT);
Arriving on the other side I’ve an app crash during Base64 decode on OpenFL/Haxe side. I’ve tryed various way but no one help to overtake decode step. Last try is:
var bytes = StringHelper.base64Decode(base64);
return ByteArray.fromBytes(bytes);
Also tried Base64 and worked around it without result.
Anyone has experience with this kind of encoding/decoding? I’ve no specific needs to use Base64 to encode to a String and I’m available to change this way for another.
Thanks in advance.
David.