You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Karas <ic...@gmail.com> on 2013/03/05 08:25:30 UTC

how to change transfer dataType to binary

hi

Sorry , my english is not good.

I want to Embedding a FtpServer in my project.
The ftp client is MCU. it only can work with binary dataType, and when the dataType is not binary ( like ascii ). what it did is just disconnect , not change the dataType.
so how to change transfer datatype when connect ,  or change the default transfer datatype;

there is a getDataType() method in FtpSession but cant find  set method.




thanks a lot


Re: how to change transfer dataType to binary

Posted by Thomaz Luiz Santos <th...@gmail.com>.
try the setDataType() or SetAttribute();

A=ASCII
I=Binary




On Tue, Mar 5, 2013 at 4:25 AM, Karas <ic...@gmail.com> wrote:

> hi
>
> Sorry , my english is not good.
>
> I want to Embedding a FtpServer in my project.
> The ftp client is MCU. it only can work with binary dataType, and when the
> dataType is not binary ( like ascii ). what it did is just disconnect , not
> change the dataType.
> so how to change transfer datatype when connect ,  or change the default
> transfer datatype;
>
> there is a getDataType() method in FtpSession but cant find  set method.
>
>
>
>
> thanks a lot
>
>


-- 
------------------------------
Thomaz Luiz Santos
Linux User: #359356
http://thomaz.santos.googlepages.com/