loadFromFile(fileName: String) updating;
The loadFromFile method of the JadeBytes class loads the binary content of the receiver from the file specified by the value of the fileName parameter. If the file name is not valid for the host machine executing the method, an exception is raised.
The following example shows the use of the loadFromFile method.
vars bytes : JadeBytes; begin create bytes; bytes.loadFromFile("c:\photo.jpg"); epilog delete bytes; end;