createObjectURL static method
@AvailableInWorkers("window_and_worker_except_service")
The createObjectURL()
static method of the URL interface
creates a string containing a URL representing the object given in the
parameter.
The URL lifetime is tied to the document in the window on which it was created. The new object URL represents the specified File object or Blob object.
To release an object URL, call URL.revokeObjectURL_static
.
Note: This feature is not available in Service Workers due to its potential to create memory leaks.
Implementation
external static String createObjectURL(JSObject obj);