Hi,
Good Afternoon to All. Need Some Help Regarding file saving on server.
I am developing a Client Server Architecture using VS.NET2005 and i want to Save All files to Server only. But i am not able to get hw can i achieve this? Can anybody help me.......?


Thanking You.....

Recommended Answers

All 3 Replies

Send your message (Data + indicator) to server and via indicator call a method (in server) to save the data into file.

Hello Ramy Mahrous,
Thank you very much for reply...
But i m not clearly getting what exactly u want to say?
can u guide me for Hw to write Indicator? is it written in app.config?
can u send me some code for that?
Thanks once again for reply.
Bye. Have a nice day.
..........Thanking u...........
Kalyani

Look, Client sends to Server some messages, right?!
And Server has OnReceive method that raises when it receives new messages, right?!
Server can parse the message, so we can append any message any string and let the server parse it and according to the string, server take an action, let's say
1-
Client sent this message "file I am daniweb user"
Server received this message, then it parsed it and switch
case "file":
SaveFile(string);
2-
Client sent this message "reply I am daniweb user"
Server received this message, then it parsed it and switch
case "file":
SendClientMessage(string);

and so on..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.