Creates a URL for the specified object.
Syntaxvar retval = URL.createObjectURL(object, oOptions);
- object [in]
The object that needs a URL. This object may be one of the following types:
- oOptions [in, optional]
Used with oneTimeOnly attribute to create a single use URL that does not need to be revoked.
A URL for the specified object.
The object passed in through object is stored in an internal hash table.
oOptions is set when you want to only use the URL once. The ObjectURLOptions object has one property, oneTimeOnly, that is set to false by default. To set the URL for the object (blob, stream, and so forth) to single use, use the ObjectURLOptions object and set oneTimeOnly to true. For URLs created for MSStream objects, oneTimeOnly is automatically set to true.
To revoke a URL created with createObjectURL, use revokeObjectURL.
Note Because of image caching, the following code that reuses a single-use Blob URL will work:
This is not true for other single-use object URLs.
Build date: 11/28/2012