Home

# Library goog.fs

Function Summary
| `blobToString(!Blob blob, string= opt_encoding) ⇒ !goog.async.Deferred` Converts a Blob or a File into a string. This should only be used when the blob is known to be small.
| `createObjectUrl(!Blob blob) ⇒ string` Creates a blob URL for a blob object.
| `getBlob((ArrayBuffer|Blob|string|undefined) var_args) ⇒ !Blob` Concatenates one or more values together and converts them to a Blob.
| `getPersistent(number size) ⇒ !goog.async.Deferred` Returns a persistent FileSystem object. A persistent filesystem will never be deleted without the user's or application's authorization.
| `getTemporary(number size) ⇒ !goog.async.Deferred` Returns a temporary FileSystem object. A temporary filesystem may be deleted by the user agent at its discretion.
| `getUrlObject_() ⇒ ?goog.fs.UrlObject_` Get the object that has the createObjectURL and revokeObjectURL functions for this browser.
| `get_(?goog.fs.FileSystemType_ type, number size) ⇒ !goog.async.Deferred` Get a wrapped FileSystem object.
| `revokeObjectUrl(string url)` Revokes a URL created by {@link goog.fs.createObjectUrl}.
| `sliceBlob(!Blob blob, number start, number= opt_end) ⇒ ?Blob` Slices the blob. The returned blob contains data from the start byte (inclusive) till the end byte (exclusive). Negative indices can be used to count bytes from the end of the blob (-1 == blob.size - 1). Indices are always clamped to blob range. If end is omitted, all the data till the end of the blob is taken.