Getting Blob from URL

Hi everyone,

Here’s my situation: my app can receive images from external apps (through the share menu).
So for example, when a user goes to his Google Photo Library app, he selects an image, clicks share and choose my app. My app receives a URL for the internal image.
Now, I want to get a Blob object from that URL. Here’s the way I’m trying to get it:

getBlob(path: string): Promise<any> {
	return new Promise((resolve, reject) => {
		var xhr = new XMLHttpRequest();'GET', path, true);
		xhr.responseType = 'blob';
		xhr.onerror = function(e) {"status: "["status"])
		xhr.onload = function(e) {
			if (this.response) {

However, the status code is 0.
Here’s an example URL: content://media/external/images/media/48

Any help would be appreciated…

Do you have include your URL in the Content-Security-Policy?

Yes, here it is:
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:8100 content://">

I also tried to remove it but it still didn’t work… Status 0 on request to Blob.

Did you ever get this working? I have the same problem.