#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0

    Binary upload becomes gibberish?


    Hello.

    I have a simple ftp upload script called from an MS Access application. The script opens an ftp port, switches to binary mode, and runs mput on a local folder containing .csv files. From all computers except one, the files are uploaded properly, however from one specific computer, the uploaded files contain only binary "gibberish" when opened.

    Any ideas on what I should do to treoubleshoot?

    Much appreciated!

    J.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2010
    Posts
    22
    Rep Power
    0

    script


    There could be two possible scenarios here.

    1) You are opening a file with an application which is not supposed to open the application. e.g. Wordpad opening a jpeg image.

    2) Your script corrupts the data. It is vary hard to say without looking at the script.

    Try transferring the file with a another client program e.g. FileZilla, this will atleast tell you that there is nothing wrong with the file itself.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0
    Thanks, mjawwad.

    I confirmed that the files themselves are fine prior to upload, and when the script is run from another PC the files upload perfectly. So there's something specific about the way the script is run on the subject computer that is corrupting the files.

    Any other thoughts?

    Originally Posted by mjawwad
    There could be two possible scenarios here.

    1) You are opening a file with an application which is not supposed to open the application. e.g. Wordpad opening a jpeg image.

    2) Your script corrupts the data. It is vary hard to say without looking at the script.

    Try transferring the file with a another client program e.g. FileZilla, this will atleast tell you that there is nothing wrong with the file itself.

IMN logo majestic logo threadwatch logo seochat tools logo