Pdf/zip arrive damaged through ftp

I'm using FTP to send our pdf files to our printers. I'm using Filezilla on a Mac. The printing office use pc's to download the pdf files. A lot of time the pdf files arrive damaged and can't be opened. I though to fix this by zipping all pdf files into one zip file and sending that through FTP instead. But this morning the zip file arrived damaged anyway. It doesn't happen all the time, but often.
What is causing these damaged pdf files when sending them from a mac to a pc with FTP? And why didn't it help by sending a zip file instead and did that one get damaged too?

I already thought of that and set transfer to binary in Filezilla for Mac. But pdf files or zipped files still arrive corrupted in some way at the pc end. I checked it by uploading a zip file and immediately downloading it back. The original zip file could be opened but the uploaded/downloaded one couldn't. The only different thing I can think of is the way I'm connected. Our company firewall doesn't normally allow connection to ftp sites other than our own departments. Filezilla seems to get through, but by a detour. For the ftp address I fill in our own proxy server and for username I use 'username @ ftp.externalsite.nl'. So where server would be ftp.externalsite.nl and the username would be 'username', I let it go through our proxy as servername. This way I can get a connection. Could it be that going through our proxy first, the firewall does something with the file first (scanning, processing etc.) before actually sending it further to ftp.externalsite.nl?

Similar Messages

  • MIME PDF not Arriving As PDF

    Hi folks.
    I've received two PDF attachments that don't arrive as PDFs.  When compressed (ZIP), they work fine when uncompressed. 
    I am seeing the following information in the email which makes me believe it's my server:
    --Apple-Mail=_88B1838A-B309-468A-A024-50752A0AA466
    Content-Type: multipart/mixed;
              boundary="Apple-Mail=_B934DE49-BB22-48EB-A411-750F208FEE81
    --Apple-Mail=_B934DE49-BB22-48EB-A411-750F208FEE81
    Content-Transfer-Encoding: 7bit
    Content-Type: text/html;
              charset=iso-8859-1
    <html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "></body></html>
    --Apple-Mail=_B934DE49-BB22-48EB-A411-750F208FEE81
    Content-Disposition: inline;
              filename="PF 18-02-0145.pdf"
    Content-Type: application/pdf;
              name="PF 18-02-0145.pdf"
    Content-Transfer-Encoding: base64
    JVBERi0xLjMKJcTl8uXrp/Og0MTGCjQgMCBvYmoKPDwgL0xlbmd0aCA1IDAgUiAvRmlsdGVyIC9G
    bGF0ZURlY29kZSA+PgpzdHJlYW0KeAHVnVuzG8eRoN/xK3ofduMw1oTQFwANPQ1FUTMa2xRHPLLs
    XU8oKJKyPSOSHlEa2/u8P2N/yv64/bKyrt1VhU...
    Any advice appreciated. 

    Update:  PDFs nor ZIPs not coming through as attachments now.  Why is this server so bad?  Honestly, what a complete pain. 
    Do I have to change something?  This is not normal. 
    Any advice appreciated. 
    Cheers

  • Can anyone help me in sending a file through FTP

    i have written a program to transfer files or directories in zipformat through FTP.i have also installed filezella server to check whether it is working or not.i have connected to filezella server but i am not able to send file.can any one send the code for sending the file.
    i have also tried the jakarta api sendfile ().but in that i don't what is mode means.
    for your reference i am sending the code as far developed.
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipInputStream;
    import org.apache.commons.net.ftp.*;
    import org.apache.commons.net.tftp.*;
    class FTPTransfer
    static public void main(String[]p)
    FTPTransfer ob = new FTPTransfer();
    // ob.Create_Zip_File(new File("outfile.zip"),new File[]{new File("c:\\trialtwo")}, false);
    ob.ftpConnect();
    // connecting to FTP server
    public void ftpConnect()
    boolean error = false;
    FTPClient ftp = null;
    try
    int reply;
    //ftp.connect("ftp.comcast.com");
    ftp = new FTPClient();
    ftp.connect( "localhost",21);
    // ftp.login( username, password );
    System.out.print("reply from FTP Server :"+ftp.getReplyString());
    // After connection attempt, you should check the reply code to verify
    // success.
    reply = ftp.getReplyCode();
    if(!FTPReply.isPositiveCompletion(reply)) {
    ftp.disconnect();
    System.err.println("FTP server refused connection.");
    System.exit(1);
    // ftp.sendFile();
    // transfer files
    // ftp.logout();
    TFTPClient tftp = new TFTPClient();
    System.out.print("before sending");
    tftp.sendFile("c:\\trialtwo\\a-1.txt",1,new FileInputStream("c:\\trialtwo\\a-1.txt"),"localhost",21);
    System.out.print("after sending");
    catch(IOException e)
    error = true;
    e.printStackTrace();
    finally
    if(ftp.isConnected())
    try
    ftp.disconnect();
    catch(IOException ioe)
    // do nothing
    System.exit(error ? 1 : 0);
    //send files
    // filename - The name the remote server should use when creating the file on its file system.
    // mode - The TFTP mode of the transfer (one of the MODE constants).
    // host - The remote host receiving the file.
    //port - The port number of the remote TFTP server.
    private void listContents( File Zip_File, File dir, ZipOutputStream out )
    throws Exception
    String[] files;
    files = dir.list();
    byte[] buf = new byte[1024];
    File[] file = dir.listFiles();
    for (int i = 0; i < file.length; i++) {
    System.out.println("*********** "+file);
    // File f = new File(dir,file[i]);
    try{
    FileInputStream in = new FileInputStream(file[i]);
    out.putNextEntry(new ZipEntry(file[i].getPath()));
    int len;
    while((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    in.close();
    catch(Exception e)
    zipEntry(Zip_File, file[i], out);
    } // end listContents()
    void Create_Zip_File(File Zip_File,File[] To_Be_Zipped_Files,boolean Skip_Dirs)
    try
    // Open archive file
    FileOutputStream stream=new FileOutputStream(Zip_File);
    ZipOutputStream out=new ZipOutputStream(stream);
    for (int i=0;i<To_Be_Zipped_Files.length;i++)
    //if (To_Be_Zipped_Files[i]==null
    // || !To_Be_Zipped_Files[i].exists()
    // || (Skip_Dirs ))
    // continue;
    System.out.println("Adding "+To_Be_Zipped_Files[i].getName());
    zipEntry(Zip_File, To_Be_Zipped_Files[i], out);
    out.close();
    stream.close();
    System.out.println("Finished zipping : "+ Zip_File.getAbsolutePath());
    catch (Exception e)
    e.printStackTrace();
    System.out.println("Error: " + e.getMessage());
    return;
    private void zipEntry(File Zip_File, File file, ZipOutputStream out) throws Exception
    if (file.isDirectory())
    listContents(Zip_File, file, out);
    return;

    You'll stand a better chance of getting help if you're more specific about what problems you're encountering. "Can't send file" doesn't say much.
    When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.

  • Sending files through FTP

    task is to take files or folders and ZIP it and send it through FTP.i was able to take the files and folders and zip it ,I was able to connect to FTP server but to send the file what code shoud i use.

    Multipost:
    http://forum.java.sun.com/thread.jspa?threadID=729985

  • I am unable to print a pdf from a website through Adobe Reader on my mac. It keeps telling me that no pages have been selected

    I am unable to print a pdf from a website through Adobe Reader on my mac. It keeps telling me that no pages have been selected - I have uploaded the latest version of Adobe with no luck and have never had this issue before !

    Hi bengaunt ,
    Thank you for posting on the Adobe forums, you can try printing as an image.
    Open the file>Print>advanced>check the box "print as an image" OK
    Thanks,
    Vikrantt Singh

  • How to put file from a legacy system to SAP through FTP

    Hi
    I want to put one file which will be comming from legacy system to a folder of application server of the SAP system through xi.The protocol i want to use is FTP.
    But im not sure about the configuration to be done for putting the file directly to SAP app server.
    Anybody having idea what configuration i need to do in the SAP side to put the file into the app server directly through FTP.
    Thanks
    Debraj

    Hi Debraj,
    Try if these links help you solve your problem:
    http://help.sap.com/saphelp_bw31/helpdata/en/4e/2ba038b81e897ce10000009b38f8cf/content.htm
    http://www.sapfans.com/sapfans/saptips.htm#prog
    http://help.sap.com/saphelp_nw04/helpdata/en/a4/db833d4c47ea4ea1a9b7af3c535ff2/content.htm
    Cheers,
    Chandra

  • I want to read a file which is in a zip and this zip file is at ftp site

    i am facing this problem and try to find the solution from last month please help me
    i want to read a file which in ziped and this zip file is at ftp site. and i want to read this file without downloading this zip file to local machine. i have to read it from ftp location only

    You can open an URLConnection to a file on an FTP server (search this forum to find out how). You can get the InputStream from the URLConnection and feed it to ZipInputStream. That should do the job.

  • File has to pass through FTPS connection.. Connection parameters?

    Hi,
    I want to transfer the file through FTPS connection. Partner side provided the following details as connection parameters.
    - IP : 129.32.169.140 
    - POrt: 990
    User name
    Password
    PASV mode
    SSL Direct, OpenSSL,SSL Listing, SSL Transfers.
    Kindly let me know what are all the parameters I need to pass in Receiver file adapter.
    FTP Connection Parameters:
    Server
    Port
    Data connection: Passive
    Connection Security:  FTPS for control connection or FTPS for control and Data connection.???
    Command Order :  ?????
    Please let me know what are the security and command order parameters I need to use in Receiver file adapter.
    They didn't provide any certificates.
    Thanks
    Deepthi.

    Hi Rajesh,
    The message is not even failing.. It is in the status of "Delivering". The below are the logs from adapter and Messaging system.
    File Adapter Log:
    Success   Message successfully received by messaging system. Profile: XI URL: http://xi-dev.intranet.XI.com.au:50200/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
    Success  Using connection File_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    Success  Message successfully put into the queue.
    Success  The message was successfully retrieved from the receive queue.
    messaging system log:
    Message ID  44b756da-d9bd-42e2-3136-e34d75adfe03 
    Message Type  Asynchronously Received Message (RECEIVE) 
    From Service   Name:  BS_1  
    To Service   Name:  BS2  
    Action   Namespace  http://XI.com/SAP_PI/ControlData Name:  BYPASS  
    Connection Name   File_http://sap.com/xi/XI/System 
    Status   Delivering 
    Error Category    
    Error Code    
    Profile   XI 
    Transport   HTTP 
    Delivery Semantics   Exactly Once 
    Times Failed   0 
    Number of Retries   3 
    Sent / Received  09/09/2009 11:22:52 
    Transmitted / Delivered  09/09/2009 11:22:53 
    Next Delivery  09/09/2009 11:22:53 
    Persist Until  10/09/2009 11:22:52 
    Valid Until  01/01/1970 10:00:00 
    Retry Interval   5 Minutes 
    Address   http://xi-dev.intranet.XI.com.au:50200/MessagingSystem/receive/AFW/XI 
    Transport Headers   authorization=Basic UElJU1VTRVI6dDFhbTRyaWE= Content-Length=3010 accept-encoding=gzip sap-xi-messageid=44B756DAD9BD42E23136E34D75ADFE03 content-length=3024 host=xi-dev.intranet.XI.com.au:50200 user-agent=SAP Web Application Server (1.0;700) content-type=multipart/related;boundary=SAP_4AA4E14330050131E10080000A722149_END;type="text/xml";start="" HTTP=POST soapaction="http://sap.com/xi/XI/Message/30" 
    Principal Propagation

  • I downloaded a book as a pdf in an app through iTunes, but I want to read it on my MacBook Air.  How do I do that, please?

    I downloaded a book as a pdf in an app through iTunes, but I want to read it on my MacBook Air.  How do I do that, please?

    A PDF is a PDF.  If it is an app then it isn't a PDF unless it is an app that is supposed to install the PDF somewhere in which case I wouldn't trust it.  From where did this originate? If it is some unknown web site there are plenty with fake links that say you are downloading one thing but they send you another in hope that you will blindly install some malware.  Usually they target Windows users but there's getting to be some for Mac (in particular MacKeeper).

  • I embedded a pdf in an Outlook appointment.  The appointment synced with my iPad calendar, but the pdf did not come through.  Am I missing a setting?

    I embedded a pdf in an Outlook appointment on my desktop.  The appointment synced with my iPad calendar correctly but the pdf did not come through.  Did I miss a setting on my iPad?
    Thank you

    Then your family members will probably have bought their ipads with a data plan from some phone company like AT&T in the States. Maybe they even got it "sponsored", because they bought a data plan with it.
    If you bought your "iPad only" from a hardware seller, you will have to get a data plan from some phone company. Seems like you only bougth the hardware! You can still use your ipad, however, and if you have an iPhone, you do not even need a sim card in your iPad, because it can use your iPhone's data plan.
    That is what I did. I save the extra money for the 3G version, because with an iPhone 4 there is no need for an own sim Card in an iPad.
    But that is another topic.

  • Steps for File Transfer through FTPS...!!!

    Hi ,
    Can anyone please tell the steps for file transfer with FTPS.
    Does PI file adapter has bulilt in feauture to handle this? or
    Do we need to deploy anything to handle this?
    Do we need to install any certificates by requesting from partner or It will do the encryptions/authentications on its own?
    Any additional Steps we need to mention in File receiver adapter while we send the file through FTPS?
    File is going through port 1090(unsecure connection) but it is not going through port (990) which is a secure connection.
    Please suggest me.
    Thanks
    Krupakar

    Hi Shabarish,
    We got the certificate from the partner and loaded into the trusted CA's. I tried running by giving
    Connectivity Security as "FTPS for Control and Data Connection" and Command Order as "AUTH TLS,USER,PASS,PBSZ,PROT"
    Ip: XXX.YY.YY.ZZZ
    Port: 990
    User and pwd.
    and I am getting the same below error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier
    I tried by selecting different options like
    1. Without selecting the X509 certificate for client authentication.
    2.  Keystore as TRUSTED\view\entry-cert
       X509 certificate and private key as TRUSTED\view\entry-cert
    3. Keystore as TRUSTED\view
      X509 certificate and private key as TRUSTED\entry-cert
    4.Keystore as "view"
      X509 certificate and private key as "entry-cert"
    Please help me in this.
    Thanks
    Krupakar

  • Is it poosible to print a pdf or any file through Oracle.

    Is it possible to print a pdf or any file through Oracle,
    Regards,
    AgrawalV

    hi,
    Not sure about .pdf file but any other file which you can easily see content of file in Oracle Database then you can you use spool option and create txt file and print them.
    sql>set heading off
    sql>set echo off
    sql>set feedback off
    sql>spool d:\print.txt
    sql>your_file_statement;
    sql>spool offregards
    Taj

  • Uploding file through FTP

    Hi
    How can i upload file and download file through FTP server .is any body has some sample code.pls help me
    Thanks!!

    I think there one undocumented sun.net.ftp
    U can try with that pkg...Better yet, don't.
    Why Developers Should Not Write Programs That Call 'sun' Packages
    http://java.sun.com/products/jdk/faq/faq-sun-packages.htmlI recommend the Jakarta Commons Net package...
    http://jakarta.apache.org/commons/net/

  • I paid for PDF to Word subscription through iTunes but when I try to convert from my computer directly from Adobe, it says I need a subscription.  Help?

    I paid for PDF to Word subscription through iTunes but when I try to convert from my computer directly from Adobe, it says I need a subscription.  Help?

    Hi divabuyer,
    It sounds like you're trying to convert to Word from within Reader, is that so? Are you signed in to Reader? If so, you'll see your name in the upper-right corner of the Reader application window.
    If that doesn't work, please try llogging in to https://cloud.acrobat.com/exportpdf with your Adobe ID and password.
    Let us know how it goes.
    Best,
    Sara

  • PDF .zip files

    How do I open PDF .zip files? My iPhone defaults to PDF lite but then it says I must buy the full version. Is there a way out?

    You can use an app like iZip.

Maybe you are looking for