public static byte[] readFromFile(File encryptedFile)
	  {
		//Reading from a file into an array of bytes
		FileInputStream fileInputStream = null;
		byte[] bFile = new byte[(int) encryptedFile.length()];
		try {
			fileInputStream = new FileInputStream(encryptedFile);
			fileInputStream.read(bFile);
			fileInputStream.close();
		}catch(Exception e){
	        e.printStackTrace();
	    }
		
		return bFile;
	  }