Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
I am seeing the following problem using JPEGImageEncoder to create a .jpg file: If I try to view the created .jpg file with MS Photo Editor, I see a 'Error Reading File' error box pop up. The image is viewable if I use a Java program to view it. Does anyone know what is going on here? Thanks in advance...
If you could post the code where you set up your JPEGEncoder and write to it (along with creating a BufferedImage, if you are using one) it would help a lot. It may be that the encoding params on the JPEG are something that is not recognized by MS Photo Editor... have you tried opening it in a browser?
This example code generates an image that I can open in MS Photo Editor... see if you can, too...
Thanks! and welcome to the JavaRanch!
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
We're being followed by intergalactic spies! Quick! Take this tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss