Methods
Static arrayBufferToAudio
- arrayBufferToAudio(data: ArrayBuffer, fileType: string): HTMLAudioElement
-
Parameters
-
data: ArrayBuffer
-
fileType: string
Returns HTMLAudioElement
Static arrayBufferToBase64
- arrayBufferToBase64(data: ArrayBuffer, mimeType: string): string
-
Parameters
-
data: ArrayBuffer
-
mimeType: string
Returns string
Static arrayBufferToImage
- arrayBufferToImage(data: ArrayBuffer): HTMLImageElement
-
Parameters
Returns HTMLImageElement
HTMLImageElement
Static blobToAudio
- blobToAudio(data: Blob): HTMLAudioElement
-
Parameters
Returns HTMLAudioElement
HTMLAudioElement
Static blobToImage
- blobToImage(data: Blob): HTMLImageElement
-
Parameters
Returns HTMLImageElement
HTMLImageElement
Static byteArrayToAudio
- byteArrayToAudio(data: ByteArray, filetype: string): HTMLAudioElement
-
Parameters
Returns HTMLAudioElement
Static byteArrayToImage
- byteArrayToImage(data: ByteArray): HTMLImageElement
-
Parameters
Returns HTMLImageElement
HTMLImageElement
Static toByteArray
-
Parameters
The ByteArray or null
Static toString
- toString(data: any, length?: number): string
-
Parameters
-
data: any
-
Default value length: number = 0
Returns string
The String or null
Converts an ArrayBuffer to a base64 string