0

I have a server in python and client in java and i want to share images through the socket how can i do so? help plz

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by dantinkakkar
0

That's what transfer protocols are for. As long as you abide to them, you will not face any cross-language incompatibilities. This reply is to the best of my knowledge, though you may want to give it a practical try once.

Lemme explain; suppose I build a java client to send a connection request to "wwww.google.com" using the URI connection classes in the JDK, I get a valid reply consisting of the html for the page. The client in this case is in Java, while the server, most probably, is not.

Edited by dantinkakkar: n/a

0

Read this first:

http://en.wikipedia.org/wiki/File_Transfer_Protocol

It describes the exact communication methodology used for transfer of Files from server to client. For more detail, refer to the external links at the end of the page which is being linked to.

If you have the python code under control, make it as per FTP specifications and do the same with the Java code. Then, give a run to your project - it should work fine.

To make your client as per FTP, you can use an API to simplify things. This thread should help you: http://stackoverflow.com/questions/295178/what-java-ftp-client-library-should-i-use

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.