How to split a ByteArray into chunks of byteArray in java, each chunk has a size of 1024 byte or less, then a method to collect each chunk into Bytearray. I'm working with offline File sharing via BlueTooth. The main goal is to share a large size Hashmap to another device via I/O streams using Bluetooth Sockets. It would be a great favor if anyone responds with an example java code for both methods.
1.4m articles
1.4m replys
5 comments
57.0k users