Transcoding of jpg files in jdk5 is fine but when I migrated to jdk6, then transcoded jpg files are getting destorded. Also the size of transcoded files are very small. e.g. In JDK5, 75 kb of jpg image is transcoded to 5 kb wheras same image in JDK6 is transcoded to 1.2kb. Please provide details on it.