
-----------------------------------
Homer_simpson
Sat Apr 19, 2003 2:17 am

Having problems downloading pictures of the net
-----------------------------------
var url : string
url := "http://www.geocities.com/stmxpm/finaly.jpg"
var netStream : int
var f : int
var ch : char
netStream := Net.OpenURLConnection (url)

open : f, "c:/downloaded file.jpg", write
loop
    exit when eof (netStream)
    get : netStream, ch
    write : f, ch
    %put ch
end loop
Net.CloseConnection (netStream)
close (f)ok that's the code and it's supposed to download a jpg file off this address "http://www.geocities.com/stmxpm/finaly.jpg". well .... it downloads somethink and it's a picture but when i open it it's a whole new picture.

-----------------------------------
Homer_simpson
Sat Apr 19, 2003 2:21 am


-----------------------------------
when i use the program download bmp files it seems to work fine but it has a problem with all jpgs. 
var url : string
url := "http://www.geocities.com/stmxpm/sc1.bmp"

var netStream : int
var ch : char

netStream := Net.OpenURLConnection (url)
if netStream 