From Xojo Documentation
| This item was deprecated in version 2020r2.
Please use BinaryStream as a replacement.
The BinaryStream class is an input/output mechanism for reading and writing arbitrary binary data. It can be used with MemoryBlocks and FolderItems.
The Read/Write methods raise an exception when reading or writing past the end of the stream. File IO prevents thread switching.
Load an image that is copied to an iOS app using a Copy Files Build Step:
Var b As BinaryStream
b = BinaryStream.Open(f, BinaryStream.LockModes.Read)
Var mb As New MemoryBlock(b.Read(b.Length))
Var image As iOSImage
image = Image.FromData(mb)
ImageView1.Image = image