Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 74884 invoked from network); 17 Jan 2008 14:55:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jan 2008 14:55:30 -0000 Received: (qmail 96433 invoked by uid 500); 17 Jan 2008 14:55:15 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 96372 invoked by uid 500); 17 Jan 2008 14:55:15 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 96363 invoked by uid 99); 17 Jan 2008 14:55:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2008 06:55:15 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pmanabe@gmail.com designates 66.249.82.227 as permitted sender) Received: from [66.249.82.227] (HELO wx-out-0506.google.com) (66.249.82.227) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2008 14:54:50 +0000 Received: by wx-out-0506.google.com with SMTP id h29so390372wxd.27 for ; Thu, 17 Jan 2008 06:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=VUeLNek8YJZzc6JQMGbaBmwcBc46XBh3yzInK8F2gzw=; b=O3di5I/BIUGZb7FHNtmbJmSb3k5Dazbwh2GSUt/PlcgW9bQPsCyj1ZJSC1t6KXPGLPLITvCHa6jfRRJFCnq6X89TS0w+ax5WQxY4nvg6hxCZqQckxiVXpiUpCjxRgC9IbxvuSUdbWjzq5lo1hFVo6RTisTq5NgHK5LNO+hnpzfQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Er6cRzD6jIH2R2vxWvd5IIxIaTxitRccs0skukpiC1IeguZjgKbkOfkpQ342n2vAUkgnUOdteeqba9Zu0pMSceRpjZlw6YSjL64L7KPHvkjvUZiHmh4kNK9Zm2L8il3NteTZOhTnrgF0c/LqhjKsER/WNhSkD6ODtAdvyv4zvL0= Received: by 10.142.203.13 with SMTP id a13mr1238033wfg.210.1200581694358; Thu, 17 Jan 2008 06:54:54 -0800 (PST) Received: by 10.142.174.4 with HTTP; Thu, 17 Jan 2008 06:54:54 -0800 (PST) Message-ID: <37f476ab0801170654m6d56c6b7mcc28636a030a2419@mail.gmail.com> Date: Thu, 17 Jan 2008 12:54:54 -0200 From: "Paulo Manabe" To: "Jakarta Commons Users List" Subject: Re: Fileupload like tomcat In-Reply-To: <37f476ab0801170500j6d3170cfg802e29003ef1168c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14342_6830716.1200581694038" References: <37f476ab0801161321t3682bf4ds214e078de9648e60@mail.gmail.com> <30f92e840801161844m24c9ff7cxc23abd62f216d0c5@mail.gmail.com> <37f476ab0801170500j6d3170cfg802e29003ef1168c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_14342_6830716.1200581694038 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline let me try... if you see in the tomcat manager page, you are able to do 2 kind of deployments. The first if you will deploy th war file located on server and the second if you will deploy a war file from the client side (You will click the button browse... and them choose the war file...). What I need to do is like the first. I know where the file is on server and I would like to read it and them save in the database..... I couldn't understand this sintaxe file://C:\some dir\some folder, and how can I read this file using this path...... Best Regards > 2008/1/17, Anas Mughal : > > > > Honestly, you are not clear. Let me try to help. > > > > If you are trying to do a file upload to a Tomcat application, consider > > using commons FileUpload: > > > > http://commons.apache.org/fileupload/ > > > > > > After the file gets uploaded, your application can save it anywhere that > > the > > Tomcat application has write access to. > > > > > > Hope this helps... > > > > -- > > Anas Mughal > > > > > > > > > > > > On Jan 16, 2008 4:21 PM, Paulo Manabe wrote: > > > > > I'm trying to upload a file from the server side like tomcat > > deployment. > > > How > > > is it? I can create a simple FileInputStream() object declaring the > > full > > > path? One doubt is if is posible to tomcat see another computer in the > > LAN > > > network and access there files and upload them... > > > > > > Thanks in advance. > > > > > > > > > > > -- > > Anas Mughal > > > > ------=_Part_14342_6830716.1200581694038--