stringToBlob

Function

Given a string, return it as a blob NOTE: USE objectToJsonBlob if you're saving a JSON resource!!! NOTE: This is not currently supported in Node

  • stringToBlob(s: string, type: string) : Blob

Parameters

Parameter Type Default Notes
s Required string
type Optional string "application/octet-stream"

Returns

Blob

Function defined in packages/common/src/resources/string-to-blob.ts:7