Hello all !

I'm working on the HTTP Codec , I'd see that in asyncweb there is no efficient way to attach a file in the response message.
So I'm writing the http response message like this :

session.write(httpMessage);

without body part.

And then

session.write(myfile);

My file is transfered via the FileChannel.transferTo + FileRegion process included in mina 2.0

It works good but i want to add this mechanism in my codec. How can i do ?

Second thing , how the file transfer is processed ? do i need to add an executor filter for simultaneous file transfers ?

Thanks a lot in advance.
  • HTTP Codec + FileRegion ... Michaël Schwartz

Reply via email to