If you're doing this on windows you need to specify that you're writing binary. James > -----Original Message----- > From: Henning von Rosen [mailto:henning / ikso.net] > Sent: Thursday, November 15, 2001 3:42 PM > To: ruby-talk ML > Subject: [ruby-talk:25349] downloading pictures using 'net/http' > > > hi! > > I wrote a little convinience script, that (using 'net/http') is given a > web-page, and > downloads it and all its locally linked documents (for later studying). This > works fine for text. But pictures > (both .gif and .jpg) are messed up. > > I suppose the 'net/http' treats them as text in an unhealthu way. What do I > need for fetching pics and writing them to disk? > > thanks > > /H >