Ciao,

a me è capitato di farlo, l'ho fatto così.

// sendfile
File myFile = new File (path);

FileInputStream fin = new FileInputStream(myFile);
byte[] buf = new byte[1024];
int read;

while( (read=fin.read(buf)) != -1) {
out.write(buf, 0, read);
}

out.flush();
fin.close();