Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 66986 invoked from network); 16 Jun 2004 13:50:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Jun 2004 13:50:33 -0000 Received: (qmail 50649 invoked by uid 500); 16 Jun 2004 13:50:30 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 50615 invoked by uid 500); 16 Jun 2004 13:50:29 -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 50596 invoked by uid 99); 16 Jun 2004 13:50:29 -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; Wed, 16 Jun 2004 06:50:29 -0700 Received: from localhost (localhost [127.0.0.1]) by holstebro.mip.sdu.dk (Postfix) with ESMTP id F071614BDD for ; Wed, 16 Jun 2004 15:50:14 +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 0B21A14B50 for ; Wed, 16 Jun 2004 15:50:14 +0200 (MEST) Message-Id: <6.0.1.1.0.20040616155143.01cd4d20@mailhost.mip.sdu.dk> X-Sender: mortena@mailhost.mip.sdu.dk X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Wed, 16 Jun 2004 15:52:54 +0200 To: "Jakarta Commons Users List" From: Morten Andersen Subject: Re: commons.net FTP upload corrupts video-files In-Reply-To: <6.0.1.1.0.20040615161102.01d1fc68@mailhost.mip.sdu.dk> References: <6.0.1.1.0.20040615161102.01d1fc68@mailhost.mip.sdu.dk> 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 solved the problem using setFileType(...) instead of setTransferType(...). I think its a bug. Morten Andersen At 16:19 15-06-2004, you wrote: >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 --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org