Java Reference
In-Depth Information
Figure 11-11.
Balanced stone at Arches National Park in eastern Utah. (Image courtesy of Public
Domain Images,
http://www.public-domain-image.com/nature-landscapes-
orbycommentingout
mtftm.addMimeTypes("image/jpeg jpg");
.Afterre-
compiling
ImagePublisher.java
, reexecute this application.
Reload the current web page in the browser. Instead of observing the image being
redisplayed, you should (under Firefox) observe a dialog box identifying
applic-
ation/octet-stream
as the MIME type, and prompting you to save the file or