Home Forums .NET libraries Xceed SFTP/FTP for .NET Help..used xceedzip and xceedftp send error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20879 |

    am using xceedzip to zip/encrypt an xml file and then used the xceedftp client sendfile method to send the file, the file gets transferred ok but when opened on the remote folder an exception happens: “Could not find a central header where one was expected in the zip file.”

    this same goes when i send a file that has been zipped using the popular winzip.. it says
    Error in file #1: bad Zip file offset (Error local header signature not found): 0
    (attempting to re-compensate)
    Extracting transactions_20070324185226.xml
    Error: unexpected end of file encountered
    Error: invalid compressed data to inflate

    my codes are:
    Dim newFilezip As String = objvo.oFileName & “.enczip”
    AddFilesToZip(newFilezip, objvo.oLocalFolder, xmlfilename) ‘ZIPS IT
    XceedFtp.SendFile(objvo.oLocalFolder & newFilezip, 0, objvo.oCurrentFolder & newFilezip, True) ‘SENDS IT

    anything wrong with my code? tnx in advance

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by twisted (had 3457 views)

    User (Old forums)
    Member
    Post count: 23064

    Set the bAppend parameter to False, to see if this resolves the issue.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 3592 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.