Thanks for this. My intent is to convert a byte array to an InputStream using bytearrayinputstream , Below is my thought of how to achieve but I welcome being corrected
B4X:
dim bais as javaobject
dim sa() as byte
bais.initializenewinstance("java.io.ByteArrayInputStream",null)
dim in as InputStream = bais.runmethod("getBinaryStream ",sa)
Thanks for this. My intent is to convert a byte array to an InputStream using bytearrayinputstream , Below is my thought of how to achieve but I welcome being corrected
B4X:
dim bais as javaobject
dim sa() as byte
bais.initializenewinstance("java.io.ByteArrayInputStream",null)
dim in as InputStream = bais.runmethod("getBinaryStream ",sa)
Sorry about this Like I been trying to do it the hard way via java when inputstream has a method already to do that very thing called InitializeFromBytesArray, of which you most definitely know. Sorry for misusing your time