public boolean getData() throws IOException
	{
		DataInputStream   l_in 					= null;
		FileOutputStream  l_out					= null;
		
		long l_sizeReceived						= 0;
		byte []l_buffer							= new byte[1024];
		int l_read								= 0;

		/*
		 * Check if filename and/or socket are not null
		 * Check if file size is not equal to 0
		 */
		if( 	( do_filename == null ) || 
				( do_socket == null ) 	|| 
				( do_fileSize == 0 ) 	||
				( do_dir == null)        )
			return false;
		
		l_in = new DataInputStream(do_socket.getInputStream());
		l_out = new FileOutputStream(do_dir + File.separator + do_filename);
		
		/*
		 * Send bytes till end of file
		 */
		while( 	((l_read = l_in.read(l_buffer)) != -1) && 
				(l_sizeReceived < do_fileSize))
		{
			l_out.write(l_buffer,0,l_read);
			l_sizeReceived += l_read;
		}
		
		/*
		 * Close streams
		 */
		l_in.close();
		l_out.close();
		
		/*
		 * if size_sent is equal to file size, then upload was successfully terminated.
		 */
		return (l_sizeReceived == do_fileSize );
	}