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 javaobjectdim sa() as byte
bais.initializenewinstance("java.io.ByteArrayInputStream",null)
diminas 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 javaobjectdim sa() as byte
bais.initializenewinstance("java.io.ByteArrayInputStream",null)
diminas 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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.