class FileBG extends
Thread {
public ProgressBar pgbar;
private BarBG barthread;
private DataInputStream datain;
private DataOutputStream dataout;;
private long filesize;
private ByteThread bytethread;
public void run()
{
try
{
long byteswritten = 0;
float percentup = 0;
byte[] outarray = new byte[2048];
while (true)
{
datain.read(outarray);
dataout.write(outarray);
dataout.flush();
}
close and catch here
Hope you can help me now.