This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
In our case we want to save the files on a server different than web server. Like I will save them on the box where I have database, my webserver works on a different box. We are trying to save pictures here on file system and will create a documentlink to them thru Apache conf file on webserver using proxy. Any idea will uploadfile packages help me on this from Apache? Thanks.
That is what I do now(save in blob in db and then write out to file on db server). But it is a lot of overhead. My thinking was as my database box has a http server(tomcat), may be I can create a proxy to that http server from my public domain server where the JSP(applcation) will be hosted and copy file to that from my PC. Now,this may a theortical idea that may not work. I wanted some views on this, is it as simple as above. Thanks.
Personally, I use a proxy servlet for such purpose. It works fine for my case and exactly case as you have, I do not want to store big files in blob, I store them separately.
Joined: Apr 24, 2003
I really do not know how to implement this. I was going to use fileupload utility come with common lib in tomcat. By reading the documentation seems it likes to se a path like /tmp/xx etc that should be there on web server to upload file. Here I want to upload direct to file system on third tier(where DB is mounted) using servlet running on webserver. Will appreciate any help on this.