Welcome to Dream.In.Code
Become a Java Expert!

Join 150,398 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,000 people online right now. Registration is fast and FREE... Join Now!




Any suggestion How to send file more faster?

 
Reply to this topicStart new topic

Any suggestion How to send file more faster?

fsloke
12 Mar, 2008 - 11:02 PM
Post #1

D.I.C Regular
***

Joined: 19 Dec, 2007
Posts: 258



Thanked: 4 times
My Contributions
We normally do the writeByte to send file, but it a bit slow ...

Any alternative to send file more faster?

I idea to send file using rmi, I not yet did that... I jus ask whether it workable or not....

Beside rmi, got any other alternative?

Thanx...
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Any Suggestion How To Send File More Faster?
13 Mar, 2008 - 03:27 AM
Post #2

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.

Also please describe your problem a bit better: what files do you want to send, from where to where?
User is offlineProfile CardPM
+Quote Post

fsloke
RE: Any Suggestion How To Send File More Faster?
14 Mar, 2008 - 05:24 AM
Post #3

D.I.C Regular
***

Joined: 19 Dec, 2007
Posts: 258



Thanked: 4 times
My Contributions
QUOTE(1lacca @ 13 Mar, 2008 - 04:27 AM) *

Also please describe your problem a bit better: what files do you want to send, from where to where?


File I want to send is pdf , doc , all commonly is document....

From on network to the other network.... Go throught internet....

Thax

User is offlineProfile CardPM
+Quote Post

1lacca
RE: Any Suggestion How To Send File More Faster?
14 Mar, 2008 - 06:12 AM
Post #4

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
Well, the easiest and most straightforward way would be to simply send them via HTTP. If you want better performance you can use a buffered tcp socket. Compressing the file before sending could be also a good idea, but it's effect depends on the data.
I don't think that RMI would do any good here for you, actually it would trash the performance.
User is offlineProfile CardPM
+Quote Post

fsloke
RE: Any Suggestion How To Send File More Faster?
14 Mar, 2008 - 08:53 PM
Post #5

D.I.C Regular
***

Joined: 19 Dec, 2007
Posts: 258



Thanked: 4 times
My Contributions
rmi provide more secure connection... How to preserve the secure while sending a file over the internet?
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Any Suggestion How To Send File More Faster?
15 Mar, 2008 - 01:51 AM
Post #6

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
rmi does not secure your connection, it just might look obfuscated for some.
If you want secure connection look for the Java Secure Socket Extension (JSSE) and use SecureSocket.
User is offlineProfile CardPM
+Quote Post

fsloke
RE: Any Suggestion How To Send File More Faster?
17 Mar, 2008 - 03:46 AM
Post #7

D.I.C Regular
***

Joined: 19 Dec, 2007
Posts: 258



Thanked: 4 times
My Contributions
Have any simple tutorial for that? Thanx...
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Any Suggestion How To Send File More Faster?
17 Mar, 2008 - 04:40 AM
Post #8

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
JSSE guide.
User is offlineProfile CardPM
+Quote Post

fsloke
RE: Any Suggestion How To Send File More Faster?
17 Mar, 2008 - 10:35 PM
Post #9

D.I.C Regular
***

Joined: 19 Dec, 2007
Posts: 258



Thanked: 4 times
My Contributions
It looks complicated... I try to read through it, anyway thank a lot....
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Any Suggestion How To Send File More Faster?
18 Mar, 2008 - 01:53 AM
Post #10

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
It is not that bad, it has really good samples, but it includes the basics and the terminology as well, so all the things in there make sense. (and avoids a lot of questions on programming boards wink2.gif )
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 06:39PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month