简体   繁体   中英

Javascript Get Source Code of an Image

Imagine opening an image file on your computer with notepad. I am trying to get the same result from an img tag or an Image object with javascript. Is this possible?

You can send an AJAX request to the image URL on the server.

If the server sends good caching headers, that won't even waste bandwidth.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM