CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2009
    Posts
    140

    [solved]FTP uploads only 52 bytes then finishes =\

    it stops at 52 bytes for jpeg files, it uploads txt files fully but without newline symbols.. would very appreciate help with making this better

    *solved _http://mail.python.org/pipermail/python-list/2001-June/089022.html
    Last edited by Owyn; May 15th, 2009 at 04:25 AM.

  2. #2
    Join Date
    May 2001
    Location
    Germany
    Posts
    1,158

    Re: FTP uploads only 52 bytes then finishes =\

    for jpegs, set the mode to binary.
    Textfiles are different on Unix or Windows in terms of line ends: CR/LF or simply LF. You need to convert them from one format to the other if you transfer between different OS.
    On Unix, dos2unix/unix2dos can be used, for Windows various editors support both formats.


    HTH,
    Richard

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

Featured