Google Apps Script API
Preparing search index...
google-apps-script-events
GoogleAppsScript
Base
Blob
Interface Blob
A data interchange object for Apps Script services.
interface
Blob
{
copyBlob
()
:
Blob
;
getAllBlobs
()
:
Blob
[]
;
getAs
(
contentType
:
string
)
:
Blob
;
getBlob
()
:
Blob
;
getBytes
()
:
number
[]
;
getContentType
()
:
string
;
getDataAsString
()
:
string
;
getDataAsString
(
charset
:
string
)
:
string
;
getName
()
:
string
;
isGoogleType
()
:
boolean
;
setBytes
(
data
:
number
[]
)
:
Blob
;
setContentType
(
contentType
:
string
)
:
Blob
;
setContentTypeFromExtension
()
:
Blob
;
setDataFromString
(
string
:
string
)
:
Blob
;
setDataFromString
(
string
:
string
,
charset
:
string
)
:
Blob
;
setName
(
name
:
string
)
:
Blob
;
}
Hierarchy (
View Summary
)
BlobSource
Blob
Index
Methods
copy
Blob
get
All
Blobs
get
As
get
Blob
get
Bytes
get
Content
Type
get
Data
As
String
get
Name
is
Google
Type
set
Bytes
set
Content
Type
set
Content
Type
From
Extension
set
Data
From
String
set
Name
Methods
copy
Blob
copyBlob
()
:
Blob
Returns
Blob
get
All
Blobs
getAllBlobs
()
:
Blob
[]
Returns
Blob
[]
Deprecated
DO NOT USE
get
As
getAs
(
contentType
:
string
)
:
Blob
Parameters
contentType
:
string
Returns
Blob
get
Blob
getBlob
()
:
Blob
Returns
Blob
get
Bytes
getBytes
()
:
number
[]
Returns
number
[]
get
Content
Type
getContentType
()
:
string
Returns
string
get
Data
As
String
getDataAsString
()
:
string
Returns
string
getDataAsString
(
charset
:
string
)
:
string
Parameters
charset
:
string
Returns
string
get
Name
getName
()
:
string
Returns
string
is
Google
Type
isGoogleType
()
:
boolean
Returns
boolean
set
Bytes
setBytes
(
data
:
number
[]
)
:
Blob
Parameters
data
:
number
[]
Returns
Blob
set
Content
Type
setContentType
(
contentType
:
string
)
:
Blob
Parameters
contentType
:
string
Returns
Blob
set
Content
Type
From
Extension
setContentTypeFromExtension
()
:
Blob
Returns
Blob
set
Data
From
String
setDataFromString
(
string
:
string
)
:
Blob
Parameters
string
:
string
Returns
Blob
setDataFromString
(
string
:
string
,
charset
:
string
)
:
Blob
Parameters
string
:
string
charset
:
string
Returns
Blob
set
Name
setName
(
name
:
string
)
:
Blob
Parameters
name
:
string
Returns
Blob
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
copy
Blob
get
All
Blobs
get
As
get
Blob
get
Bytes
get
Content
Type
get
Data
As
String
get
Name
is
Google
Type
set
Bytes
set
Content
Type
set
Content
Type
From
Extension
set
Data
From
String
set
Name
Google Apps Script API
Loading...
A data interchange object for Apps Script services.