BlobBluffer
Method Summary
Public Methods | ||
public |
Combines two Blobs to create a new Blob containing the two. |
|
public |
Creates a Blob from a binary string. |
|
public |
createBase64(base64: string): Promise<Blob> Creates a Blob from a base64 encoded string. |
|
public |
Extracts the contents of a Blob as a binary string. |
|
public |
readBase64(bluffer: Blob): Promise<string> Extracts the contents of a Blob as a base64 string. |
|
public |
Gets the length/size (in bytes) of the Bluffer. |
|
public |
Creates a new Blob containing a slice of the original Blob. |
Public Methods
public combine(blufferA: Blob, blufferB: Blob, blufferN: Array<Blob>): Promise<Blob> source
Combines two Blobs to create a new Blob containing the two.
Params:
Name | Type | Attribute | Description |
blufferA | Blob | ||
blufferB | Blob | ||
blufferN | Array<Blob> |
public create(text: string): Promise<Blob> source
Creates a Blob from a binary string.
Params:
Name | Type | Attribute | Description |
text | string |
public createBase64(base64: string): Promise<Blob> source
Creates a Blob from a base64 encoded string. Effectively decoding it.
Params:
Name | Type | Attribute | Description |
base64 | string |
public read(bluffer: Blob): Promise<string> source
Extracts the contents of a Blob as a binary string.
Params:
Name | Type | Attribute | Description |
bluffer | Blob |
public readBase64(bluffer: Blob): Promise<string> source
Extracts the contents of a Blob as a base64 string.
Params:
Name | Type | Attribute | Description |
bluffer | Blob |