Static method to release an existing object URL which was previously created by calling window.URL.
Questions tagged [revokeobjecturl]
16 questions
9
votes
1 answer
What is the best practice for revokeObjectURL, and is calling it really necessary?
I am in the process of writing an advanced image upload feature for a site. In an attempt to allow all image configuration to be performed BEFORE wasting time and both client and server resources uploading the images to the server, I am trying to…

jrista
- 32,447
- 15
- 90
- 130
4
votes
0 answers
URL.revokeObjectURL doesn't remove blobs from "Sources" panel and from chrome://blob-internals/
The problem is basically what the title says. The minimal example to demonstrate it is below.
This function accepts a File object as an argument from field. It creates a URL and revokes it 5 seconds later.
const compress =…

roman465
- 160
- 2
- 5
4
votes
2 answers
Proper way to check if a URL is the result of a createObjectURL call?
I have a situation where an image is being set by the user either to a URL or with bytes that is converted into a blob object URL. My understanding is that in order to prevent resource leaks, I should be freeing the blob object URLs when they are…

Paul
- 10,381
- 13
- 48
- 86
4
votes
1 answer
How can I call revokeObjectURL only after the URL has loaded?
I have a web application. It runs in Google Chrome and is not required to work in any other browser.
I have PDF data which has been generated on the server and sent back to the client in an AJAX request.
I create a blob from the PDF data.
I use…

barryd
- 317
- 4
- 12
3
votes
2 answers
Blob createObjectURL download not working in chrome
Below code is showing a "file not found" error in Chrome but the same code works for some other environments in chrome, and after adding some time delay it was working.
Kindly advise about the reason for the required time delay in my local…

user1777192
- 79
- 1
- 5
3
votes
1 answer
Releasing memory from blob creation / object URL in writing file to client's disk
Update
Since asking the question below and arriving at a more fundamental question after finding the error in the code, I found some more information such as in the MDN web docs for the downloads API method downloads.download() it states that a…

Gary
- 2,393
- 12
- 31
3
votes
1 answer
Way to know when an ObjectUrl has been downloaded (to revoke it...)
I would like to delete my Blobs once they are download by the user:
var url = window.URL.createObjectURL(myBlob);
var a = document.createElement("a");
a.download = 'myFile' + fileExtension;
a.href = url;
a.click();//download launched
/**…

Anthony Bobenrieth
- 2,758
- 1
- 26
- 38
2
votes
0 answers
Video Streaming: Using Blob URL, -Video Seek casting 404 file not found
I am a developer/creator of a Video Streaming Service, in order to server the movies I am using
createObjectURL() (BLOB URL).
The Blob Url is created and served to the html5 video element
after the video is rendered the blob URL is revoked…

Stewart
- 21
- 4
2
votes
1 answer
JavaScript why window.URL.createObjectURL needs to be revoked?
function f() {
// some code.. then:
var bloburl = URL.createObjectURL(canvasToBlobOutput)
// I could would do the following line, but assume I don't
// imgElement.src = bloburl;
// will this leak memory?
}
If I would uncomment the…

user3599803
- 6,435
- 17
- 69
- 130
1
vote
0 answers
Why Svelte's onDestroy event is not executing URL.revokeObjectURL()?
I've been loading modal with a help of svelte-simple-modal library, and I want to cleanup variable used for loading image that is stored in memory, previously obtained from backend through JSON.
So I have these important things in tag of…

xphorm
- 25
- 4
1
vote
2 answers
Why revokeObjectURL doesnt show me the filesize on IE 11
var fileInput = document.querySelector('#file');
var preview = document.getElementById('preview');
fileInput.addEventListener('change', function(e) {
var var_error =…

Stiller Eugen
- 681
- 2
- 10
- 28
0
votes
1 answer
JavaScript - Check if Object URL has been used
I can create an object URL like this:
let pixel = "iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
let data = atob(pixel);
let buffer = new ArrayBuffer(data.length);
let array =…

cbwi
- 33
- 1
- 6
0
votes
0 answers
In a Chrome Extension with Background and Content scripts when can I call revokeObjectURL?
I am uploading files from the local file system by using XMLHttpRequest. I am following the suggestion made in this SO question - Pass large blob or file from chrome extension
This is started in the background script with the following…

darbid
- 2,545
- 23
- 55
0
votes
1 answer
User has shared access to his personal account in Office365 via OAuth2. How to revoke shared access programmatically?
I can manage sharing access by user to his personal Office365 account via OAuth2. This article does not contain information how to revoke the access. I believe there is should be REST API to revoke shared access.
Can I have help or missed link to…

Sergii
- 7,044
- 14
- 58
- 116
0
votes
0 answers
How can I convert Youtube blob:videourl to actual source URL in Javascript?
While watching any Youtube video, if the video element is inspected (in Chrome devtools) then the src attribute of the video tag shows blob:https://youtube.com/somerandomhash instead of the actual source url.
Can I somehow retrieve the actual…

raj454raj
- 299
- 3
- 12