## toByteArray() {#default} Returns the property value as byte array. ```js toByteArray() ``` ### Remarks Throws an exception if the property type is not [PropertyType.ByteArray](../../propertytype......thumbnail to a document that we save as an Epub. ```js let doc =...writeln("Hello world!"); // If we save a document, whose "Thumbnail"...