client server upload file

  • Thread starter Thread starter alfredfx
  • Start date Start date
A

alfredfx

i'm planning to develop a client server system
the client and server both able to upload picture
client will upload the picture to a folder that reside in the server
while server user can also upload picture to that folder also
and then client and server can retrieve the picture from there.

can someone giv some guide to me how to work this out ?
i'v been lookin for solution.
1. using sqldatabase to store picture
2. ....
 
I'm also working on a little different Client/Server infrastructure. I
opted to use sockets and not remoting since I want to my Server to intereact
with cross platform applications. But Remoting is a higher level
abstraction and might get you going faster. If you want to explore using
Sockets here's some ideas to get you started.

Server
1. use sqldatabase on server to store picture filename, location, and any
othert relevant information
2. Use TCPListener on server to wait for incoming connections
3. Use Asynccallbacks to keep listening for new clients while receiving data
from connected client
4. Use events in the Asynccallback to hand the retrieved image (incoming
data) back to MainForm(assuming your using one). Then the MainForm and check
the md5 of the file, saev it to disk, then write the data to database.

Client
1. TCPClient to connect to server and send data (there are a few steps in
here but this is the direction to go)

Here are 2 links to great intro articles that will get you started on a
client and server app. You'll have to alter and customize it from there.
The articles look long, but if you power through them it should only take
you about 2 hours to get through each one and you'll have a great client
server base to start from.

Client
http://www.devarticles.com/c/a/C-Sharp/Asynchronous-Socket-Utility-Classes--Part-I/

Server
http://www.devarticles.com/c/a/C-Sharp/Asynchronous-Socket-Utility-Classes--Part-II/


Hope this help.. Good luck.

alfredfx said:
i'm planning to develop a client server system
the client and server both able to upload picture
client will upload the picture to a folder that reside in the server
while server user can also upload picture to that folder also
and then client and server can retrieve the picture from there.

can someone giv some guide to me how to work this out ?
i'v been lookin for solution.
1. using sqldatabase to store picture
2. ....
 
Back
Top