So you want to convert a HTML or text file into an image (in TIFF format).
ImageIO.read(...) is for
reading and image file. Why are you trying to do that if you have to
write a TIFF file?
Basically,
you should do this:
- Create a BufferedImage
- Render the text or the HTML on the bitmap of the BufferedImage
- Save the BufferedImage as a TIFF file using ImageIO.write(...)
Note that rendering HTML is not a simple job.