, why copy it again, especially if it's big - it just adds another step.
-Original Message-
From: Dave Newton [mailto:newton.d...@yahoo.com]
Sent: Wednesday, December 17, 2008 12:52 PM
To: Struts Users Mailing List
Subject: RE: get file path from FormFile
It hardly seems necessary
It hardly seems necessary to make a framework change when you can just write
the file.
--- On Wed, 12/17/08, Givler, Eric wrote:
> From: Givler, Eric
> Subject: RE: get file path from FormFile
> To: "'Struts Users Mailing List'"
> Date: Wednesday, December
ltFileItem ) {
DefaultFileItem df = (DefaultFileItem) o;
File osFile = df.getStoreLocation();
path = osFile.getPath();
}
return path;
}
-Original Message-
From: elyes sallem [mailto:elyes.sal...@gmail.com]
Sent: Tuesday, December 16, 2008 6:24 AM
To: Struts Users Mailing List
Subject: get
ok, for the upload, i saved the file on the server
so i create a tmp file in this directory
"servlet.getServletContext().getRealPath("/")"
is it ok for the place , or i must create temporary file in an other
location? if not OK, where do i have to create them?
Thanks
Regards
Elyes
2008/12/16
So... are you:
1) Trying to upload a file to the server?
2) Trying to send a file the browser?
3) Both?
If 1) See if http://wiki.apache.org/struts/StrutsFileUpload can help.
If your API only accepts a file path, save the file as a temp file
locally on the server.
If 2) The solution has been provi
--- On Tue, 12/16/08, elyes sallem wrote:
> to avoid any confusion,
Too late!
> 1- i have data in a file, so through the formfile, i get
> the file path (now i make the test locally, but after it
> will be deployed on a server) and i load this data in a
> database, depending on the file's meta
to avoid any confusion,
all i want to do is that :
1- i have data in a file, so through the formfile, i get the file path (now
i make the test locally, but after it will be deployed on a server) and i
load this data in a database, depending on the file's meta data, and its
content
2- i allow the us
Ah...finally someone cracked the code!
Nils-H
On Tue, Dec 16, 2008 at 1:55 PM, Dave Newton wrote:
> --- On Tue, 12/16/08, elyes sallem wrote:
>> this library, take as input a file and depending on this
>> file's metadata generates tables in a database and make trt
>> after this (so as a constrai
--- On Tue, 12/16/08, elyes sallem wrote:
> this library, take as input a file and depending on this
> file's metadata generates tables in a database and make trt
> after this (so as a constraint, i can't modify the class in
> this jar)
So... you're *uploading* a file to the server (from the use
this library, take as input a file and depending on this file's metadata
generates tables in a database and make trt after this (so as a constraint,
i can't modify the class in this jar)
Regards
Elyes
2008/12/16 Nils-Helge Garli Hegvik
> What library (jar) is this? I assume that you mean tha
Looking at your previous posts, i think that you are wasting your time
even thinking about using a java applet. Go back a few steps and think
again, maybe answering the following simple sequence of questions:
1) Your web application server has access to some data somewhere. The
data can be any
--- On Tue, 12/16/08, elyes sallem wrote:
> after publishing this question, i conclude that it is not
> possible de get back the absolute path from FormFile but
> the problem is that i import a jar file, in which i call
> a method that accept only path of file so what do you propose,
> i get the
What library (jar) is this? I assume that you mean that this library
generates the actual file content that you want to send back to the
browser? As you suggest, one way is to create a temp file which you
read and stream back to the browser. Or you could save the file in a
public area where it can
Hello,
after publishing this question, i conclude that it is not possible de get
back the absolute path from FormFile
but the problem is that i import a jar file, in which i call a method that
accept only path of file
so what do you propose, i get the inputstream , then i create temporarly a
file a
14 matches
Mail list logo