Returns a copy of this blob.
Deprecated.
Deprecated. This function is deprecated and should not be used in new scripts.
Return the data inside this object as a blob converted to the specified content type.
Return the data inside this object as a blob converted to the specified content type. This method adds the appropriate extension to the filename — for example, "myfile.pdf". However, it assumes that the part of the filename that follows the last period (if any) is an existing extension that should be replaced. Consequently, "ChristmasList.12.25.2014" will become "ChristmasList.12.25.pdf".
Gets the data stored in this blob.
Gets the content type of the bytes in this blob.
Gets the data of this blob as a string with the specified encoding.
Gets the data of this blob as a String with UTF-8 encoding.
Gets the name of this blob.
Returns whether this blob is a Google Apps file (Sheets, Docs, etc.).
Sets the data stored in this blob.
Sets the content type of the bytes in this blob.
Sets the content type of the bytes in this blob based on the file extension.
Sets the content type of the bytes in this blob based on the file extension. The contentType will be null if it cannot be guessed from its extension.
Sets the data of this blob from a string with the specified encoding.
Sets the data of this blob from a string with UTF-8 encoding.
Sets the name of this blob.
Blob A data interchange object for Apps Script services.