Results 1 to 17 of 17

Thread: Files become corrupt during upload

  1. #1

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Files become corrupt during upload

    Anyone know off-hand why a unix to nt FTP of a zip file could become corrupt en-route ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  2. #2
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    280
    are u blaming software here? If not, here is probably what most likely is hapenning. Files getting corrupted while be uploaded is rare but possible. It depends on your network and network route. Factors such as the node they pass thru, the QOS of the node and network provider come into play. I remember I faced your problem when I was in India. I was try to upload files from my WinME laptop to a Linux server somewhere in LA. My Indian ISP took their connection from a Singapore provider that had a very poor network. In the process, data was lost en route. This normally happens over large distances. There is little you can do about it but change your ISP. I don't face any such problems like this in the US though. What is the your IP and the server IP? Lemme try a trace route and see if I could pin point any problems for u.
    OrdinaryGuy

  3. #3

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    The ftp client on the unix box was defaulting to ascii files, whereas in fact it was a binary file I was uploaded.

    Problem solved
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by plenderj
    The ftp client on the unix box was defaulting to ascii files, whereas in fact it was a binary file I was uploaded.

    Problem solved
    From Unix->Unix you can get away with ASCII for binary files I think, it's when you get Windows involved that everything goes pear-shaped.

    It's the conversion of line endings, if you hadn't noticed
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Yeah sorta knew that, but I had assumed at the time that the ftp client ("ftp") would have defaulted to binary
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Hmm. Mine does
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    If I just telnet into my shell, and type in ftp, I have to send the "binary" command then to make sure its using binary.
    Otherwise it uses ascii
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Hmm. Probably configured that way. Or it might depend what server you connect to.

    PS: Telnet is psychotically insecure, use SSH in preference
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well it is ssh im using. Most people I talk to dont seem to know what ssh is though so I just dont bother mentioning ssh anymore
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  10. #10

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Mike, on a totally unconnected note, any thoughts on this ?
    http://www.vbforums.com/showthread.p...hreadid=209400
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  11. #11
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    I get this problem sometimes.


  12. #12
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Um. For linear the average is N/2 I think. I think it's logarithmic for binary search.

    I haven't done Java for a while though (I have a course on it here though, ugh) so I can't really help :-/

    As for SSH.....well, spot the person who still needs to use his router
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  13. #13

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Yeah I know the running times of the algorithms etc.
    I'm just not sure if its actually giving the right results.

    Have ported the code over to VB and am getting weirrd results
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  14. #14
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    That'll be VB. Hang on, will knock up something in C++ for you (language of choice for me )
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  15. #15

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Ah well I mean I do know how it works and the concept and all that perfectly.
    I just dunno if its working
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  16. #16
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I was going to check it a little more accurately
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  17. #17

    Thread Starter
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I'm installing *********++ as we speak
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width