public NSData(File file) throws IOException {
  bytes=new byte[(int)file.length()];
  RandomAccessFile raf=new RandomAccessFile(file,"r");
  raf.read(bytes);
  raf.close();
}

public NSData ( File file ) throws IOException { bytes = new byte [ ( int ) file . length ( ) ] ; RandomAccessFile raf = new RandomAccessFile ( file , "r" ) ; raf . read ( bytes ) ; raf . close ( ) ; }
creates a nsdata object from a file . using the files contents as the contents of this nsdata object .
