Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 46488 invoked from network); 22 Mar 2007 16:23:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2007 16:23:23 -0000 Received: (qmail 54375 invoked by uid 500); 22 Mar 2007 16:23:25 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 54304 invoked by uid 500); 22 Mar 2007 16:23:24 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 54293 invoked by uid 99); 22 Mar 2007 16:23:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 09:23:24 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [216.252.121.70] (HELO web43140.mail.sp1.yahoo.com) (216.252.121.70) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 22 Mar 2007 09:23:13 -0700 Received: (qmail 73519 invoked by uid 60001); 22 Mar 2007 16:22:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=eogO8mupNRKZW3IDSaYnacrOjHaa7dk/F0CdaH63nGZzK0h/yR01dyyCo/llqJrFmBUqbGdP9j2AlHQUD5/HZ8JExph0ff3fT+jq8ds9nvcb4sIKVSGoWUGJCCs2JKmDOEHPrMzJs/eKvhW/m7qazunGZavrP93zfu7tU5KAzTA=; X-YMail-OSG: Gog6QDIVM1lJlpcy0zqqMCyNcJtMNbJxwY.dKpvwcbh2jgXI8ZWYSIK4fqkqle2hBrP0w6r62rY68IA_NVMTWfeUGCgfaIok70BcAIKZyTjSdaeg4h.bkuJXqk1bFhknVYOLgGgecAOLNdQcNitz0EHN Received: from [122.169.10.52] by web43140.mail.sp1.yahoo.com via HTTP; Thu, 22 Mar 2007 09:22:51 PDT Date: Thu, 22 Mar 2007 09:22:51 -0700 (PDT) From: Leena Kulkarni Subject: [fileupload] Need help for Streaming API processing To: commons-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-537404943-1174580571=:72629" Content-Transfer-Encoding: 8bit Message-ID: <386278.72629.qm@web43140.mail.sp1.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-537404943-1174580571=:72629 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello All, Im trying to use the streaming API for file upload. I have taken the code sample from the site's "Stream API" section and already have the basic steps. I need the file to be uploaded available as a byte[]. I need code sample for 1. converting an InputStream into byte[] if anyone has already done that. 2. before using this streaming API I used to get the fileSize by a metod called item.size() Which is the corresponding method in the streaming API? Regards, Leena --------------------------------- Get your own web address. Have a HUGE year through Yahoo! Small Business. --0-537404943-1174580571=:72629--