Skip to main content

transferring files

10 replies [Last post]
somkumar155
Offline
Joined: 2007-11-16

I am writing a code to transfer files between two peers,
i m so thankful if ny1 will give me the code ,so i hv to integrate it with jxta application

Message was edited by: somkumar155

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
carnado
Offline
Joined: 2007-08-21

i have go to download section,but i can't see anything that show me about CMS like you say...can u give me some light...or u can give me link to the site....

moonlite
Offline
Joined: 2008-01-24

Hallo,

you need to download

jxtacms.jar

bye

fabiendupre
Offline
Joined: 2008-01-04

you can also use the sample with sockets (tutorial.socket) from the documentation.

moonlite
Offline
Joined: 2008-01-24

Hallo,

you mean you can send rtp streams via jxta sockets.

And can connect on one peer a jmf transmit and on the other peer a
jmf capture and have real time video streaming.

Did you did that already?

bye

david1907
Offline
Joined: 2008-02-18

you see project jxtacast is a sample very well

moonlite
Offline
Joined: 2008-01-24

Hallo David,

do you have any idea how to transfer rtp (JMF media stream, real time protoco, transmit) with jxta.

I´m just checking out vujxdp, some adventure source understanding.
I have a now a clear an understanding how that should work.

But I still would like to now if someone has something clever already ready.

bye

nirvaan
Offline
Joined: 2007-09-14

for file transfer in jxta u can use CMS (Content Management Service). it provides classes for sharing, unsharing and downloading files. CHEERS!!!!!!

somkumar155
Offline
Joined: 2007-11-16

hi thanks fr reply but i want code for the file transfer

nirvaan
Offline
Joined: 2007-09-14

u can go to the download section n download sample codes for cms. u can find SearchDemo.java,DownloadDemo.java or more... Else u can try www.koders.com to search the codes easily.

moonlite
Offline
Joined: 2008-01-24

Hallo,

Have a look at the other projects, there is something to send
large files split up in smaller parts.

You also can send file directly:

msg.addMessageElement(
new InputStreamMessageElement(
dataTag, null, new FileInputStream(file), null));

op.send(msg);

But there is an restriction to about 8 KB fro sending a file
directly.
Don´t know why, and know how to change that, probably you must
hack something in the orginal jxta source.

But shareing is also a good oportunity, just think of what happens
everybody get files he don´t want to have.

You coud send a note that file are ready for shareing, so
other can download them

bye