Hi pmak,
Before go any further, could you please answer the questions below?
1. What is the structure of your application, cs or bs? In other words, is the application server on the server machine a web server or a program developed by yourself?
2. Where is the data base, is it on the client machine, the server machine of another machine?
3. What type of protocol are you used?
From my experience, when we develop a client server application, we often choose the .Net remoting, web service or a new architecture: WCF. We can add a method which is responsible to handle the file uploading and saving data to the database. Then we need to encapsulate the method to a service. In the client application, we only need to call this service.
These are some documents about them:
WCF: http://msdn.microsoft.com/en-us/library/ms735119.aspx
.Net remoting: http://msdn.microsoft.com/en-us/library/kwdt6w2k(VS.71).aspx
Please feel free to tell me if you need a code snippet or more information.
Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.