@Override
    public void run() {
        byte[] buffer = new byte[1024];
        int read;
        try {
            while((read=inputStream.read(buffer)) != EOF) {
                outputStream.write(buffer, 0, read);
            }
        }
        catch (IOException e) {
            e.printStackTrace();
        }
    }