Android Question Equivalent of arraybuffer.slice(start, end) in B4X

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone,
i'm trying to porting some javascript (react) code into B4A, but the data.slice(from, to) function is used to create blocks of 512bytes from a larger file.

What is the equivalent in B4X?

Thanks in advance
 

Mike1970

Well-Known Member
Licensed User
Longtime User
There isn't enough information here. If the file is not too large then you can read it completely with File.ReadBytes, add the bytes to B4XBytesBuilder and use SubArray2 to slice it.
Thanks, actually the only thing i was looking for was how to create smaller blocks of bytes from a file (900KB).
You got the point, i will try asap.
 
Upvote 0
Top