Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

Problem writing to file using code from FTPSDemo found here | Telit Cinterion IoT Developer Community

September 3, 2019 - 2:35pm, 781 views

Hello,

I am having trouble downloading files from an FTP/FTPS Server to an EHS5T-Module.

The code i am using for this is basically the same as the one seen in the FTPSDemo (https://iot-developer.thalesgroup.com/showcase/java-explicit-ftps-implementation-bouncycastle) by Bartłomiej Tyburski.

The problem is that i always get an IOException:

ex=java.io.IOException: IOError -149 during socket:: write 

What does -149 mean ?

The file itself is written properly and contains exactly the contents it should have (same size, same contents as on the server...).

I'd just like to know how to deal with this Exception since ignoring every kind of IOException is no viable way to solve this problem...

I tried googling it but it seems that I'm the only one struggling with this problem...

Please help me out with solving this problem or at least give me a nudge into the right direction!

Thanks and Best Regards,

Bogdan