Blob

Overview

The Blob object represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.

Location

 

arrayBuffer

Returns a promise that resolves with an ArrayBuffer containing the entire contents of the Blob as binary data.

 

method arrayBuffer: array of Byte

 

Byte[] arrayBuffer()

 

func arrayBuffer() -> Byte...

 

Byte[] arrayBuffer()

 

Function arrayBuffer() As Byte()

size

 

property size: dynamic read;

 

dynamic size { get; }

 

var size: dynamic { get{} }

 

dynamic size { __get; }

 

ReadOnly Property size() As dynamic

slice

Returns a new Blob object containing the data in the specified range of bytes of the blob on which it's called.

 

method slice(parstart: dynamic; parend: dynamic; parcontentType: dynamic): dynamic

 

dynamic slice(dynamic parstart, dynamic parend, dynamic parcontentType)

 

func slice(_ parstart: dynamic, _ parend: dynamic, _ parcontentType: dynamic) -> dynamic

 

dynamic slice(dynamic parstart, dynamic parend, dynamic parcontentType)

 

Function slice(parstart As dynamic, parend As dynamic, parcontentType As dynamic) As dynamic

Parameters:

  • parstart:
  • parend:
  • parcontentType:

stream

Returns a ReadableStream that can be used to read the contents of the Blob.

 

method stream: dynamic

 

dynamic stream()

 

func stream() -> dynamic

 

dynamic stream()

 

Function stream() As dynamic

text

Returns a promise that resolves with a USVString containing the entire contents of the Blob interpreted as UTF-8 text.

 

method text: String

 

String text()

 

func text() -> String

 

String text()

 

Function text() As String

type

 

property type: dynamic read;

 

dynamic type { get; }

 

var type: dynamic { get{} }

 

dynamic type { __get; }

 

ReadOnly Property type() As dynamic

 

size

 

property size: dynamic read;

 

dynamic size { get; }

 

var size: dynamic { get{} }

 

dynamic size { __get; }

 

ReadOnly Property size() As dynamic

type

 

property type: dynamic read;

 

dynamic type { get; }

 

var type: dynamic { get{} }

 

dynamic type { __get; }

 

ReadOnly Property type() As dynamic

 

arrayBuffer

Returns a promise that resolves with an ArrayBuffer containing the entire contents of the Blob as binary data.

 

method arrayBuffer: array of Byte

 

Byte[] arrayBuffer()

 

func arrayBuffer() -> Byte...

 

Byte[] arrayBuffer()

 

Function arrayBuffer() As Byte()

slice

Returns a new Blob object containing the data in the specified range of bytes of the blob on which it's called.

 

method slice(parstart: dynamic; parend: dynamic; parcontentType: dynamic): dynamic

 

dynamic slice(dynamic parstart, dynamic parend, dynamic parcontentType)

 

func slice(_ parstart: dynamic, _ parend: dynamic, _ parcontentType: dynamic) -> dynamic

 

dynamic slice(dynamic parstart, dynamic parend, dynamic parcontentType)

 

Function slice(parstart As dynamic, parend As dynamic, parcontentType As dynamic) As dynamic

Parameters:

  • parstart:
  • parend:
  • parcontentType:

stream

Returns a ReadableStream that can be used to read the contents of the Blob.

 

method stream: dynamic

 

dynamic stream()

 

func stream() -> dynamic

 

dynamic stream()

 

Function stream() As dynamic

text

Returns a promise that resolves with a USVString containing the entire contents of the Blob interpreted as UTF-8 text.

 

method text: String

 

String text()

 

func text() -> String

 

String text()

 

Function text() As String