posted 19 years ago
Hi,
I could write the byte[] to a file.But I want to have that with a particular extension. Like "tif". the code I wrote:
File f=new File("c:/temp/od/test.tif");
FileOutputStream fout = new FileOutputStream(f);
fout.write(b);//b is byte[] obtained..
fout.close();
return f;
My question is:
Is this the right way to specify the file extension?. I could open the file from ie,paint etc. But the problem is I was not able to include it in <img> tag using HTML. I appreaciate if someone could help me out.
Thanks