byte[] data = new byte[0];
try {
final FileConnection file = (FileConnection) Connector.open(url);
final int fileSize = (int) file.fileSize();
data = new byte[fileSize];
final InputStream inputStream = file.openInputStream();
inputStream.read(data);
} catch (final Exception e) {
errorDialog(e.toString());
}
return data;