View Single Post
Old 08-06-2007, 12:11 AM   #2 (permalink)
Rose
Thumbs Must Hurt
 
Rose's Avatar
 
Join Date: Nov 2006
Location: India
Model: 9700
OS: Windows 7
Carrier: Airtel
Posts: 121
Post Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation

Hi,
This can be done using javaME Fileconnection api.


1) Open a file connection specifying the filepath where you wanna create the image.


FileConnection fp = (FileConnection)Connector.open("FilePath");
if(!fp.exists()){
fp.create();
OutputStream out = fp.openOutputStream();
out.write(imageBytes);
fp.close();
out.close();
}
Offline