http.download error - Data source write error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • yss
    Forum Member
    • Nov 2004
    • 41

    http.download error - Data source write error

    I get this "Data source write error" when I try to download a file that is on the remote server.
    The file is there, and the line I use is correct.

    Anybody knows what this is about?

    Thanks
    Joe
  • yss
    Forum Member
    • Nov 2004
    • 41

    #2
    http.download error

    Here is the code, sorry

    Code:
    HTTP.Download("http://www.xxxxx.com/dir/dir1/file1.zip", CommonFiles.."\dir\dir1\file1.zip", MODE_TEXT, 20, 80, nil, nil, nil);
    Joe

    Comment

    • rhosk
      Indigo Rose Customer
      • Aug 2003
      • 1698

      #3
      What is the variable 'CommonFiles'? Unless you've established this earlier, that's not a global variable. Also, since it's a zip file, use MODE_BINARY instead of MODE_TEXT (MODE_TEXT being mainly ascii type files).

      Try to use Application.GetLastError (a lot) ....and also do variouis checks before you establish a final resting place for the downloaded file. ie, try the c:\\ drive first, then work from there.

      HTH
      Regards,

      -Ron

      Music | Video | Pictures

      Comment

      • yss
        Forum Member
        • Nov 2004
        • 41

        #4
        Found the problem

        Thanks Ron :yes
        Found the problem, it was a:

        StatusDlg.Show(MB_ICONINFORMATION, true)

        line, it was before the code i have. I converted it to:

        StatusDlg.Show(MB_ICONINFORMATION, false)

        And now it works, I wonder what was wrong with the other code (true), but it will do for now.

        Thanks again,
        Joe

        Comment

        • rhosk
          Indigo Rose Customer
          • Aug 2003
          • 1698

          #5
          That IS strange...glad you got it going though.
          Regards,

          -Ron

          Music | Video | Pictures

          Comment

          Working...
          X