There have been a lot of tips given, maybe a "bit stupid" of me but why don't you use a standard open exchange format? A standard exchange platform was invented in the past precisely to solve all kinds of challenges that have come up in previous posts. A long time ago we used XML for this, nowadays it can be JSON which has good B4X support.
Either you have:
- An existing program output or
- You have written a program yourself in C++ or C# in the Windows environment.
In the first case you can use a hex editor to see how the binary data is written and you could convert your "read binary files" to JSON format yourself in Windows C++ or C# before you exchange it to another OS platform or develop a B4J program for it.
In the second case you have the freedom to choose how you write the data. If you then also choose the JSON format you will avoid a lot of misery because they are solved by the JSON library.
Please note that an open standard like JSON can be read by anyone. Depending on how you transport the data, it may be necessary to implement additional protection measures such as encryption in order to comply with some privacy legislation.