You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by farhanrayani <fa...@flydubai.com> on 2016/06/09 06:55:42 UTC

Avoid file transferring in [dos] file format in camel-ftp

Hi Team,

I am having an issue that when I use camel-ftp transferring txt file from my
local drive to linux machine via sftp it is transferring fine but in [dos]
file format. How can I avoid transferring in [dos] file format. The camel
ftp version which I am using is 2.17.1. 

My pom.xml 

<camel-version>2.17.1</camel-version>

<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-core</artifactId>
			<version>${camel-version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-ftp</artifactId>
			<version>${camel-version}</version>
		</dependency>
		



--
View this message in context: http://camel.465427.n5.nabble.com/Avoid-file-transferring-in-dos-file-format-in-camel-ftp-tp5783740.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: Avoid file transferring in [dos] file format in camel-ftp

Posted by Matt Sicker <bo...@gmail.com>.
Thankfully, it looks like an internal IP address.

On 10 June 2016 at 01:19, Pontus Ullgren <ul...@gmail.com> wrote:

> Sorry the "forum" is also a mailing list so even if the forum post could be
> delete all emails send out can not. So I advise you to change password as
> soon as possible if you have not already done so.
>
> Also the questions you raise are more suited for the user mailing list.
>
> On Fri, 10 Jun 2016, 08:12 farhanrayani, <fa...@flydubai.com>
> wrote:
>
> > Hi Siano,
> >
> > Can you delete this post as the password of our server is shared by
> > mistake.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://camel.465427.n5.nabble.com/Avoid-file-transferring-in-dos-file-format-in-camel-ftp-tp5783740p5783809.html
> > Sent from the Camel Development mailing list archive at Nabble.com.
> >
>



-- 
Matt Sicker <bo...@gmail.com>

Re: Avoid file transferring in [dos] file format in camel-ftp

Posted by Pontus Ullgren <ul...@gmail.com>.
Sorry the "forum" is also a mailing list so even if the forum post could be
delete all emails send out can not. So I advise you to change password as
soon as possible if you have not already done so.

Also the questions you raise are more suited for the user mailing list.

On Fri, 10 Jun 2016, 08:12 farhanrayani, <fa...@flydubai.com> wrote:

> Hi Siano,
>
> Can you delete this post as the password of our server is shared by
> mistake.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Avoid-file-transferring-in-dos-file-format-in-camel-ftp-tp5783740p5783809.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>

RE: Avoid file transferring in [dos] file format in camel-ftp

Posted by farhanrayani <fa...@flydubai.com>.
Hi Siano,

Can you delete this post as the password of our server is shared by mistake.



--
View this message in context: http://camel.465427.n5.nabble.com/Avoid-file-transferring-in-dos-file-format-in-camel-ftp-tp5783740p5783809.html
Sent from the Camel Development mailing list archive at Nabble.com.

RE: Avoid file transferring in [dos] file format in camel-ftp

Posted by "Siano, Stephan" <st...@sap.com>.
Hi,

I guess, your problem is different: The file is already containing DOS CRs and you want to convert it to UNIX linefeeds. It may work if you set binary to false (this should at least work for FTP), but AFAIK unlike for FTP, for SFTP the binary (and also the passive) parameters do not do anything because the underlying protocol does not support this (and passive does not make sense at all for SFTP as unlike FTP there is never a separate control and data channel).

Best regards
Stephan

-----Original Message-----
From: farhanrayani [mailto:farhan.rayani@flydubai.com] 
Sent: Donnerstag, 9. Juni 2016 09:19
To: dev@camel.apache.org
Subject: Re: Avoid file transferring in [dos] file format in camel-ftp

Hi Claus,

I am using this configuration still facing the same issue. Kindly see the
configuration which I used


ftp.source=file:Z:/test?recursive=true&move=.camel&moveFailed=.error&delay=1m

ftp.destination=sftp://flydubai@10.1.18.97/smartrez/connection?recursive=true&password=$ta*pm1Dt&passiveMode=false&maximumReconnectAttempts=3&binary=true
	



--
View this message in context: http://camel.465427.n5.nabble.com/Avoid-file-transferring-in-dos-file-format-in-camel-ftp-tp5783740p5783743.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: Avoid file transferring in [dos] file format in camel-ftp

Posted by farhanrayani <fa...@flydubai.com>.
Hi Claus,

I am using this configuration still facing the same issue. Kindly see the
configuration which I used


ftp.source=file:Z:/test?recursive=true&move=.camel&moveFailed=.error&delay=1m

ftp.destination=sftp://flydubai@10.1.18.97/smartrez/connection?recursive=true&password=$ta*pm1Dt&passiveMode=false&maximumReconnectAttempts=3&binary=true
	



--
View this message in context: http://camel.465427.n5.nabble.com/Avoid-file-transferring-in-dos-file-format-in-camel-ftp-tp5783740p5783743.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: Avoid file transferring in [dos] file format in camel-ftp

Posted by Claus Ibsen <cl...@gmail.com>.
Try setting binary=true
http://camel.apache.org/ftp2

On Thu, Jun 9, 2016 at 8:55 AM, farhanrayani <fa...@flydubai.com> wrote:
> Hi Team,
>
> I am having an issue that when I use camel-ftp transferring txt file from my
> local drive to linux machine via sftp it is transferring fine but in [dos]
> file format. How can I avoid transferring in [dos] file format. The camel
> ftp version which I am using is 2.17.1.
>
> My pom.xml
>
> <camel-version>2.17.1</camel-version>
>
> <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-core</artifactId>
>                         <version>${camel-version}</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-ftp</artifactId>
>                         <version>${camel-version}</version>
>                 </dependency>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Avoid-file-transferring-in-dos-file-format-in-camel-ftp-tp5783740.html
> Sent from the Camel Development mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2