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-
public-domain-images-pictures/rock-formations-public-domain-
images-pictures/balanced-stone-at-arches-national-park.jpg.html )
Modify Listing11-23 ,eitherbyremovingthe .jpg extensionin balstone.jpg ,
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
Search WWH ::




Custom Search