private void sendFile(){
		try {
			FileReader fr = new FileReader(file);
			long numBytes = file.length();
			char[] cbuf;
			byte[] buffer = new byte[PACKET_LENGTH];
			System.arraycopy(ByteBuffer.allocate(4).putInt((int)numBytes/PACKET_LENGTH+2).array(), 0, buffer, 1, 4);
			buffer[0]=2;
			sendPacket(buffer);
			sendPacket(file.getName().getBytes());
			for(int i=0;i<=numBytes/PACKET_LENGTH;i++){
				if(numBytes > (i+1)*PACKET_LENGTH)
				cbuf = new char[PACKET_LENGTH];
				else{
					cbuf = new char[(int) (numBytes-((PACKET_LENGTH)*i))];
				}
				fr.read(cbuf);
				sendPacket(new String(cbuf).getBytes());
				_logger.log(new Message("send file part "+i+" out of"+ numBytes/PACKET_LENGTH,Message.Type.Report));
				Thread.sleep(100);
			}
		} catch (FileNotFoundException e) {
			_logger.log(new Message("When getting file to send in \"Client\"", Message.Type.Error, e));
		} catch (IOException e) {
			_logger.log(new Message("When reading file to send in \"Client\"", Message.Type.Error, e));
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}