Retrieve Zip/jpg file from web server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Norton

    Retrieve Zip/jpg file from web server

    Hi,

    Currently I can use System.Net.Http WebRequest to get the html code, but how
    can i capture the binary data like zip file, jpg files?


    Regards,
    norton


  • Cor Ligthert

    #2
    Re: Retrieve Zip/jpg file from web server

    Hi Norton,

    Do you mean the
    webclient.downl oadfile method



    I hope this helps?

    Cor
    [color=blue]
    >
    > Currently I can use System.Net.Http WebRequest to get the html code, but[/color]
    how[color=blue]
    > can i capture the binary data like zip file, jpg files?
    >[/color]


    Comment

    • Anand[MVP]

      #3
      RE: Retrieve Zip/jpg file from web server

      Have you looked at WebClient.Downl oadFile??

      Rgds,
      Anand
      VB.NET MVP


      "Norton" wrote:
      [color=blue]
      > Hi,
      >
      > Currently I can use System.Net.Http WebRequest to get the html code, but how
      > can i capture the binary data like zip file, jpg files?
      >
      >
      > Regards,
      > norton
      >
      >
      >[/color]

      Comment

      • Norton

        #4
        Re: Retrieve Zip/jpg file from web server


        that s exactly what i want

        Really thx, Cor

        Norton


        "Cor Ligthert" <notfirstname@p lanet.nl> wrote in message
        news:OG$jDjrUEH A.3420@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Hi Norton,
        >
        > Do you mean the
        > webclient.downl oadfile method
        >
        >[/color]
        http://msdn.microsoft.com/library/de...dfiletopic.asp[color=blue]
        >
        > I hope this helps?
        >
        > Cor
        >[color=green]
        > >
        > > Currently I can use System.Net.Http WebRequest to get the html code, but[/color]
        > how[color=green]
        > > can i capture the binary data like zip file, jpg files?
        > >[/color]
        >
        >[/color]


        Comment

        Working...