Technical ReferenceMacroFlex ScriptingFileSystem Object ReadAllBytes ReadAllBytes Returns the contents of a file as a byte array. Syntax FileSystem.ReadAllBytes(File) Parameters File String, input File to read. Example Sub Main() Data = FileSystem.ReadAllBytes("C:\Users\Public\My Directory\MyPicture.png") End Sub