Could I use the StreamMessage to fulfill the function of file transfer??
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   HanSheng_Fan
Posted On:   Monday, March 1, 2004 07:09 PM

I've been in a project with a sub function of file transfer.
I had thought to use socket programming.But suddenly the StreamMessage come to my mind, I thought to have a try, but it seems to be only valid when the file is small enough.
When it comes to big file, a ArrayIndexOutOfBoundsException
occured.Anybody could give me some advice to solve this problem?
Thanks a lot.

Re: Could I use the StreamMessage to fulfill the function of file transfer??

Posted By:   Arnaud_Simon  
Posted On:   Thursday, March 4, 2004 01:20 AM

Hi,



You should not use StreamMessage but BytesMessage to transfer a file.


A chat application that can be used to exchange files is distributed as a demo with ArjunaMS. You may have a look at it to solve your problem.



Hope this helps,

Arnaud
www.arjuna.com
About | Sitemap | Contact