con.setLocalPath(localPath);
//System.out.println("LocalPath = " + con.getLocalPath());
// which spawns a new thread for the download
con.download(remoteFileName);
File file = new File(con.getLocalPath(),localFileName);
if (crc > 0 && crc != file.length())
throw new Exception("CRC ERROR.");