: Wednesday, January 11, 2006 5:49 PM
Subject: Re: Accessing Files outside of WebApp
> Sorry,
>
> keep = keen
>
> -Zach
>
> Zach Moazeni wrote:
>
> > Even then I have to bring out the byte array into somewhere so that
> > they're link is active. Like I said
Bah, a coworker had me try
FileDownloadServlet
/FileDownloader/*
and everything is Groovy.
Thanks for all the previous help.
-Zach
Zach Moazeni wrote:
Also one other thing...hitting the Servlet via
"./FileDownloader/MyDoc.doc?id=#{doc.id}" (using JSF)
Doesnt' seem to hit th
Also one other thing...hitting the Servlet via
"./FileDownloader/MyDoc.doc?id=#{doc.id}" (using JSF)
Doesnt' seem to hit the servlet, but going to
"./FileDownloader?id=#{doc.id}"
does.
Thanks for any input
-Zach
Zach Moazeni wrote:
Alrighty,
I was able to push the download to the cli
Alrighty,
I was able to push the download to the client with this snipbit of code
I wrote:
File file = new
File("C:\\wolverine-documents\\inquiryDocs\\1010\\Operations Use Cases
V1.3.doc");
FileInputStream fin = new FileInputStream(file);
byte[] bytes = new byte[fin.a
Sorry,
keep = keen
-Zach
Zach Moazeni wrote:
Even then I have to bring out the byte array into somewhere so that
they're link is active. Like I said I'd rather not do any type of copy
over for this link.
Plus I'm not too keep on Blobs in databases anyway.
I think the other's suggestion of
Even then I have to bring out the byte array into somewhere so that
they're link is active. Like I said I'd rather not do any type of copy
over for this link.
Plus I'm not too keep on Blobs in databases anyway.
I think the other's suggestion of the Servlet mapping will do great. Thanks for
a
You may want to have a look at the ResourceServerServlet in Java Web Parts:
http://javawebparts.sourceforge.net/javadocs/javawebparts/servlet/ResourceServerServlet.html
That may give you what you want. It allows you to serve any resource from
a variety of sources (currently file system from any
What I do for my application is creat a URL mapping
/binaries/*
That maps to a servlet that then reads the files from the source directory,
and transmits them out the OutputStream.
George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
> -Original Message-
>
--- Zach Moazeni <[EMAIL PROTECTED]> wrote:
> Hello,
>
> In our current application I need to link to a
> file that resides
> outside of the webapp directory. On another
> application we allowed the
> users upload files and stored them in the webapp
> directory, which made
> deployment a r
Why not just store the file in a database as a BLOB? Let the database
worry about where they go...
-Original Message-
From: Zach Moazeni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 2:16 PM
To: Tomcat Users List
Subject: Accessing Files outside of WebApp
Hello,
In our
10 matches
Mail list logo