How to transfer(Upload) file to remote server using code in Winfx 3.0

Hi all,

I am new in winfx 3.0. I don't know how to transfer(upload) file from client pc to remote server. Is there any FTP control available in web based application in win 3.0




Answer this question

How to transfer(Upload) file to remote server using code in Winfx 3.0

  • Daikoku

    It's possible to do this using ASP.Net and/or Atlas. ASP.Net provides a FileUpload Control and you can find the documentation on how to use it here.

  • shaul_ei

    Hi,

    If it is restricted in winfx 3.0...how can i achieve functionality in which my website user want to upload image file to server so, they can see it on web site..Can't i do it in winfx 3.0

    plz...help me out if there is any way to achieve such functionality...



  • jagotaas

    WPF doesn't come up with any built-in control which is an equivalent to FileUpload web control in ASP.NET, but I can you can build your own FileUpLoad control using WPF and the WebClient class from System.Net namespace, WebClient class has a method called UploadFile() which enables you to send a local file to a server, and it also has a method called DownloadFile() which does the opposite. all you have to do is build a simple UI consisting of TextBox, Button and Microsoft.Win32.OpenFileDialog.

    Sheva


  • Rattlerr

    The original poster was asking if he could do this using an XBAP and the simple answer is no. XBAPs run in a sandbox and cannot access files on the local computer (either direction).

  • How to transfer(Upload) file to remote server using code in Winfx 3.0