Results 1 to 3 of 3

Thread: quick q: how can I download a webpage?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    quick q: how can I download a webpage?

    I cant search... I know it's been asked 1000 ^ n+32 times, but one more time

    just give me a clue and I should be able to figure out the rest. I want to download a jpg file or a html file from a webpage
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    for your html....
    VB Code:
    1. Dim wc As New Net.WebClient()
    2.         Dim sReader As New IO.StreamReader(wc.OpenRead("http://www.vbforums.com/showthread.php?s=&threadid=263956"))
    3.         MessageBox.Show(sReader.ReadToEnd)
    4.         wc.Dispose()
    5.         sReader.Close()
    6. '////////////////////////////////
    7. '/// Or .....
    8.        Dim wc As New Net.WebClient()
    9.         wc.DownloadFile("http://www.vbforums.com/", "C:\somefile.htm") '/// download and save to HD.
    for images etc...
    VB Code:
    1. Dim wc As New Net.WebClient()
    2.         Dim img As Image = Image.FromStream(wc.OpenRead("http://www.vbforums.com/images/smilies/smile.gif"))
    3.         PictureBox1.Image = img
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    ok thank you
    I just downloaded 800 images...
    it was the graduation pics of everyone at our school. dont ask how I got the url to all of them though
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width