如何在 img 标签 src 中使用 blob URL?

How to use blob URL in img tag src?

我有一个生成的 blob url,格式如下:

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

我试过直接使用它:

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

并在 url 之前用 "blob://" 进行了尝试。引发了 404 not found 错误!

通过 blob url 显示图像的正确方法是什么?

正确的方法是:

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

只需将 src 设置为 blob url

我的错误是一开始就没有确定它是一个图像斑点!