trying to read a file but doesnt know how to get the size of the inputstrem
hi im trying to read a file in a cel this is my code:
fconn = (FileConnection)Connector.open("file://localhost/" + actualdir);
InputStream fis = fconn.openInputStream();
byte b[] =newbyte[1024];
fis.read(b);
fis.close();
fconn.close();
textBox1 =new TextBox("Viendo el Archivo: " + list1.getString(list1.getSelectedIndex()), null, 1024,TextField.ANY | TextField.UNEDITABLE);
textBox1.setString(new String(b, 0, b.length));
i dont want to create always an array of bytes of size 1024 instead i wanna know how many bytes does inputstream object has, how can i know that?

