C# : upload an image from remote server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dadonz
    New Member
    • Jan 2008
    • 3

    C# : upload an image from remote server

    I wrote a web application in C# that upload an image to the server.

    When I try to select (form the HtmlInputFile control) file from a remote computer (and not in the server itself), I get the Exception:

    System.IO.FileN otFoundExceptio n: C:\Temp etc....

    In other words: it search the file in the server computer (while it suppose to search it on the client computer).

    when I select a file from the server itself my function works great.

    What can I do in order to get the file from the Client and save it on the server?

    Any ideas?
  • koi
    New Member
    • Feb 2008
    • 5

    #2
    Hai,

    First create the class at server and inherit it by MarshalByRef Class.

    Write a property to set and get image for above class.

    Access the above class at client side by importing dll or exe of server.

    Connect through particular channel and set the image in client and access it in server.

    hope it works

    Comment

    Working...