All pastes #473802 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-06 13:00 UTC
rendered paste body
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.rmi.RemoteException;


public class send {

		public static void main(String[] args) {
		// Read file to transfer
		byte[] fileBytes = null;
		try {
			File file = new File("c:\test\1.txt");
			FileInputStream fis = new FileInputStream(file);
			fileBytes = new byte[fis.available()];
			fis.read(fileBytes);
		} catch (IOException e) {


		}

	}
}