Quote:
Originally Posted by berryapp Like in the earlier reply, once you have the connection, you could get the InputStream. You can then use the IOUtilities class provided by RIM to read the whole content into an array.
InputStream in = fconn.openInputStream();
byte[] data = IOUtilities.streamToBytes( in );
You could then set the data in a String, String = new String(data.); // need to use String
For small data file this would be an easier way to go. |
String = new String(data.); // need to use String