Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 16298 invoked from network); 15 Jun 2004 14:17:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Jun 2004 14:17:36 -0000 Received: (qmail 98029 invoked by uid 500); 15 Jun 2004 14:17:28 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 97874 invoked by uid 500); 15 Jun 2004 14:17:27 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 97850 invoked by uid 99); 15 Jun 2004 14:17:27 -0000 Received: from [130.225.143.14] (HELO holstebro.mip.sdu.dk) (130.225.143.14) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 15 Jun 2004 07:17:27 -0700 Received: from localhost (localhost [127.0.0.1]) by holstebro.mip.sdu.dk (Postfix) with ESMTP id 89EB314C75 for ; Tue, 15 Jun 2004 16:17:13 +0200 (MEST) Received: from styding.mip.sdu.dk (styding.mip.sdu.dk [172.30.121.198]) by holstebro.mip.sdu.dk (Postfix) with ESMTP id A26CF14BC3 for ; Tue, 15 Jun 2004 16:17:11 +0200 (MEST) Message-Id: <6.0.1.1.0.20040615161102.01d1fc68@mailhost.mip.sdu.dk> X-Sender: mortena@mailhost.mip.sdu.dk X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Tue, 15 Jun 2004 16:19:50 +0200 To: commons-user@jakarta.apache.org From: Morten Andersen Subject: commons.net FTP upload corrupts video-files Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd 0.1 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I am trying to make an automatic upload from a web-server to a media-streaming server of streaming videos. This fails. The files seems to get corrupted. I don't know why: Here is some of the code: -------------------------------------------------- InputStream input = new FileInputStream(file); ftp.setFileTransferMode(FTPClient.BINARY_FILE_TYPE); ftp.storeFile("TEST-FILE.wmv", input); --------------------------------------------------- ftp is a FTPClient and the file I'm uploading is a "wmv" file. The file gets uploaded but as I try to download it and play it Windows media player argues that the file is corrupted. The uploaded file is 800 bytes bigger then the original. Please advice... Morten Andersen Master of applied mathematics and computer science Amanuensis Interest areas: -e-learning -software engineering -applied math The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 65 50 36 54 +45 61 71 11 03 Jabber id: hat@jabber.dk --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org