1

In this asp.net web application, users can upload files to the server through a web interface. All the uploaded files are save in a server side folder. If I want to create a new win form desktop client (actually, its a WPF application) which can be used to upload files to that same server side folder as web interface does, how can I share that server side folder with that win form client? Any alternative suggestions are also welcome.

thanks for all in advance.

Lahiru Ruhunage
  • 351
  • 2
  • 10
  • 23

2 Answers2

4

Several ways; you could consider creating a web service on that same server, and the wpf app will communicate with this service. Or, if in the same network, it should be able to communicate via a network share, provided the proper permissions are set.

HTH.

Brian Mains
  • 50,520
  • 35
  • 148
  • 257
  • hi, thx. yes, I think having a service in the server will be a good solution. because this app will be host in the internet. – Lahiru Ruhunage Jul 29 '10 at 12:33
  • WCF - Upload the files to/through a service, create clients to the service - one of which is the web app, one of which is the windows client. – Murph Jul 29 '10 at 12:39
0

Like answered in What is the best way to store files in a (asp.net + wcf) web application:

  • Use the WCF tier as a common ground and store the images behind that service. As I said it's going to be an extra to pull the byte arrays over.
  • Store the images in the Web UI tier and have a service (asmx or WCF one) to expose the images to your winforms/WPF client.
  • Make a share for the winforms/WPF client on the server where the web ui runs, and where the images are. Of course be sure to be respectful to security and possible hacks.
Community
  • 1
  • 1
Kris van der Mast
  • 16,343
  • 8
  • 39
  • 61
  • can you explain more about this third approach? I mean how to do that? – Lahiru Ruhunage Jul 29 '10 at 12:36
  • Simply have a windows shared folder like z:\ to the server. Of course this'll only work for people inside your organisation who have privileges on that server. Not the best option but an option. – Kris van der Mast Jul 29 '10 at 13:01
  • ok, since this is public accessible site, i think its not a good solution. I think best option is second approach for this app. thanx lot for your support – Lahiru Ruhunage Jul 29 '10 at 14:08