public boolean addFile(String dirPath, int libraryFK){
		
		//Creating paths
		String archiveFileName = new File(dirPath).getName() + ".zip";
		String archiveDirectoryPath = Resource.getString("path.temp.zip") + libraryFK + "/";
		new File(archiveDirectoryPath).mkdirs(); 		
		String zipFileArchivePath = archiveDirectoryPath + archiveFileName;
		
		//Archiving directory(file)
		boolean isArchived = Zip.archiveDir(dirPath, zipFileArchivePath);
		if(isArchived == false){
			System.err.println("File wasn't archive");
			return false;
		}
					
		//Read archive file
		byte[] data = readFileAsByteArray(zipFileArchivePath);		
		if(data == null){
			System.err.println("Data wasn't read");
			return false;
		}
		
		FileBean fileBean = new FileBean(-1, libraryFK, libraryFK + "_"+ archiveFileName, data);
		FileDAO fileDAO = new FileDAO(Connector.getInstance());
		int id = fileDAO.insertFile(fileBean);
		
		if(id > 0) return true;
		else return false;
	}