Hello everyone.

Excuss my english.

I have a midlet that connect to a servlet correctly, but, when I write the file to my disc, I found a file with 0bytes :S

I read this article:
http://wiki.forum.nokia.com/index.ph...load_with_J2ME

Encoding image, to send:
PHP Code:
Image imagenEnv Image.createImage("/photo.png");
             
//to create a mutable version of the image
byte[] fileBytes getByteArray(imagenEnv); 
Decoding image:

PHP Code:
if (!item.isFormField()) {
  
String fieldName item.getFieldName();
  
byte[] datosfieldName.getBytes();
                            
   
f1 = new FileOutputStream(path);                                                                                
   
f1.write(datos); 

How can I do?

Excuss me english

Thanks!