>Hi Members,
>I want to write a program to download a zipped file from a web site.I mean >my program should connet to that site and starts downloading the file.
>Can anybody please provide me the sufficient knowledge about this.
you can use
import java.net.*;
import java.io.*;
import java.nio.*;
these packages.
Socket clientSocket = new Socket();
SocketChannel inputChannel = clientSocket.getChannel();
RandomAccessFile outputFile = new RandomAccessFile(url,"rw");
FileChannel outputChannel= outputFile.getChannel();
inputChannel.read(ByteBuffer);
outputChannel.write(ByteBuffer);
try this...