downloading web file

I would like to write a program to download a webfile to my harddisk.

For an example, downloading 'http://forum.java.sun.com/im/a.gif' this pic file into my harddisk.

For normal webpage, i can just retrieve the source code and save as a text file, but cannot be applied for audio files, image files and all that.

I heard that is a technique named multipart and i tried to search in google but found nothing.

anyone can help me out of this?

thanks!

[486 byte] By [NetBeginnera] at [2007-10-2 22:02:37]
# 1
Any type of content can be downloaded in same way, but with pictures or audio you should use binary streams instead of textual.
Michael.Nazarov@sun.coma at 2007-7-14 1:19:06 > top of Java-index,Core,Core APIs...