BinaryData interface represents binary data, for example, a file which has just been uploaded in an HTTP request.
as:"file" argument on a request handler.
Load a file from your plugin’s
file directory with
Construct binary data with
Create an output file with a generator.
The digest of the file, as a hex encoded
The size of the file, in bytes, as a number.
The MIME type of the file. Note that some MIME types are standardised as browsers tend to be a bit inconsistent.
The filename of the file, as set by the browser.
Return the contents of the binary data, interpreted as a string in the given character set, eg
Use this function with care, checking the
fileSize property before calling it, as it is very easy to accidentally run out of memory.