Zahema
Zahema

Reputation: 1415

How to use blob URL in img tag src?

I have a generated blob url with the following format :

blob:file%3A///2aade.....

I tried to use it directly:

src="blob:file%.... "

and tried it with"blob://" before the url. Which raised a 404 not found error!

what is the correct way to display an image through the blob url?

Upvotes: 2

Views: 7716

Answers (1)

Zahema
Zahema

Reputation: 1415

The correct way is:

src= "blob:file....."

just set the src to the blob url

My mistake was not making sure it was an image blob in the first place!

Upvotes: 5

Related Questions