I have an applet where i get an image the form of byte array .I use the createImage() of awt toolkit to create an image using the byte array .The image loads properly in applet and now i change the image using filters and convert the modified image into a byte array using the following code
I send this byte array over to a servlet and write it to a file using file outputstream. The file is created at the location but i am not able to see the modified picture when i open the file in IE or any other editor.
Please suggest what to do ?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
7
posted
0
Welcome to JavaRanch.
An array of bytes does not make an image, and writing them into a file will not produce something that most image viewers can handle. Which file format are you using to store those bytes?
Originally posted by Ulf Dittmer: Welcome to JavaRanch.
An array of bytes does not make an image, and writing them into a file will not produce something that most image viewers can handle. Which file format are you using to store those bytes?