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:

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);                                                                                

How can I do?

Excuss me english