BYTEBUFFER dynamic allocation?

hi,

i'm trying to send a file through socket channel, using bytebuffer...

*is there a way to allocate my buf dynamically?

*is it a good way to transfer files through socketchannel?

my server will use java code, and my client will use C++ code in a symbian supported mobile phone.

thanks for your help,

erhan

(program will transfer file during a chat program)

[408 byte] By [keskena] at [2007-10-1 7:24:31]
# 1
int size= 512; // or whatever you like byte buffer[]= new byte [ size];
BIJ001a at 2007-7-9 18:35:28 > top of Java-index,Administration Tools,Sun Connection...