// FileInputStream fs = new FileInputStream(file);
int streamLength = length;
byte[] filedata = new byte[streamLength];
int streamLength = length;
byte[] filedata = new byte[streamLength];
is.read(filedata, 0, streamLength);
return filedata;