File Upload Server
imagenesis
imagenesis at gmail.com
Mon Dec 22 08:46:08 EST 2008
This is a programming issue not really a netty issue. The best I could say is
figure it out. :)
manish_iitg wrote:
>
> Hello,
>
> I am trying to implement a server in netty to upload a file and then do
> various operations on it. Can anybody suggest a method to send a file to
> netty server effeciently.
>
> The first thing that came to my mind was to fill, ChannelBuffer by the
> bytes of the file. But, if the size of the file is too large then this
> will not be an efficient solution.
>
> Another method would be to create a create a ChannelBuffer of fixed size
> e.g. 1024 byte and send this ChannelBuffer to netty server. The server
> would reply with a received signal and then again the client would send
> 1024. And this will go on till the entire file has been uploaded. Is this
> an efficient solution or is there a better way to do it. Also, i need a
> way to keep track of how many bytes have been uploaded to the server.
>
> Thanks
>
--
View this message in context: http://n2.nabble.com/File-Upload-Server-tp1689933p1690090.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list