Xojo.IO.BinaryStream.Constructor(mb As MemoryBlock)

From Xojo Documentation

Revision as of 18:03, 11 August 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constructor

Creates a BinaryStream from a MemoryBlock.

Notes

A BinaryStream created using a MemoryBlock will automatically re-size the MemoryBlock as needed to contain any additional data written to the stream.

Sample Code

Create binary data from an Image in the iOS project:

// MyImage is an iOSImage in the project
Var binaryData As New BinaryStream(MyImage.ToData("public.PNG"))