Get the mime type if the value. If it was set from a file content, the mimeType
prop get 'application/octet-stream'
value.
Get the Base64 string. It represents only the content. Data URI will be ignored.
Get if the content is invalid.
Represent the size in bytes of the buffer resulting from decoding the Base64 string. It correspond to the original contentsize before encoding.
Convert the content to a Buffer instance.
Convert the content to a decoded string.
Static
fromSet the content from a Base64 string. The mime type extract from the data URI. If it not exists, the mime type will be 'application/octet-stream'
.
The Base64 string.
Static
fromSet the content from a file. Extract the content and encode to Base64.
File location.
Manage a Base64 string.
Example: Create a instance from a Base64 string.
Example: Create a instance from a file.