PUBLIC

JavaScript URL : Object

Provides methods to generate a url for a Blob so locally generated content can be passed to APIs that accept urls.

URL Methods

createObjectURL(blob : Blob) : String

Creates a url for the specified blob that can be passed to methods that expect a url. When done with the returned url, call revokeObjectURL() to free the resources associated with the created url.

Example:

Run

Results:

 

revokeObjectURL(url : String) : undefined

Frees the resources associated with the url created by createObjectURL().

Example:

Run

Results: