Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Coping Files over the internet

Coping Files over the internet

Scheduled Pinned Locked Moved C#
csharpasp-netsysadminwindows-adminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Orion Buttigieg
    wrote on last edited by
    #1

    hello, i'm trying to do a File.Copy but over the wire. more specifically an UpLoad, since it's starting from a Client machine. Catch is this is via a WinForm/UserControl/ComponentModel object(s). so nothing to do with any kind of ASP, ASP.NET or otherwise. in the end i'm just trying to take a file of some type, be it a .jpg/.dll/.something and send/save it to a server over the net. i've been experimenting with a number of classes; WebClient, HttpWebRequest and HtmlInputFile/HttpPostedFile. the last 2 being specific to ASP.NET, as i thought i might be able to make the system think it was coming from as ASP.NET page or something like that. i've been using a WebServer(IIS) for the connection, specifically to a Virtual Directory. which is where the file(s) will need to be in the end anyways. but i'm having no luck passing the file to the virtual file path. any advice or help would be great. Thank you, Orion

    J 1 Reply Last reply
    0
    • O Orion Buttigieg

      hello, i'm trying to do a File.Copy but over the wire. more specifically an UpLoad, since it's starting from a Client machine. Catch is this is via a WinForm/UserControl/ComponentModel object(s). so nothing to do with any kind of ASP, ASP.NET or otherwise. in the end i'm just trying to take a file of some type, be it a .jpg/.dll/.something and send/save it to a server over the net. i've been experimenting with a number of classes; WebClient, HttpWebRequest and HtmlInputFile/HttpPostedFile. the last 2 being specific to ASP.NET, as i thought i might be able to make the system think it was coming from as ASP.NET page or something like that. i've been using a WebServer(IIS) for the connection, specifically to a Virtual Directory. which is where the file(s) will need to be in the end anyways. but i'm having no luck passing the file to the virtual file path. any advice or help would be great. Thank you, Orion

      J Offline
      J Offline
      jparsons
      wrote on last edited by
      #2

      I'm a little bit confused by your post. Are you simply trying to transfer a file over thei nternet from your client to server. Or are you doing this from a web page? Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n

      O 1 Reply Last reply
      0
      • J jparsons

        I'm a little bit confused by your post. Are you simply trying to transfer a file over thei nternet from your client to server. Or are you doing this from a web page? Jared jparsons@jparsons.org www.prism.gatech.edu/~gte477n

        O Offline
        O Offline
        Orion Buttigieg
        wrote on last edited by
        #3

        sorry.., yes just simply transfering a file over the internet from my client to my server. Absolutely nothing to do with a web pages. i'm sure i'm missing something obvious. although every example i look at is from web page to web page. i am trying to put the file in C:\Inetpub\wwwroot\SomeDirectory, but again has nothing to do with web sites. these files are dll's and source code files. Orion

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups