Posted: 8/4/2009 8:59:53 PM EDT
| Is it possible to write a file to hard drive, upon user request, from a Java application that is run off a remote website? I know Java tries to protect the pc. |
|
Well, that's the thing.
This is for an application that currently requires considerable processing on the remote machine. If I can shift the processing to the user's local machine, it would benefit all parties and cut the bandwidth used in half. But in that case, it reuires being able to run the application in the local machine's browser, in Java, and to be able to write the file to the hard drive in soe way. The way it works now, the application runs on the remote machine and creates a file on the remote machine's disk, then displays a link and the local user downloads the file with a right-click-save-as. If there is even a way to create the file in memory on the local machine, and for a "link" to be displayed in the Java app or the user to right-click-save-as on, then it would still work. |
|
If I were doing it I would use two programs, one server side and one client side. I needed to save some configuration information to the client from a program running primarily on the server. I have had to do this a couple of times in the past. I am by no means an expert, but I do have some experience. |
in this case, does the problem exist because the server/remote machine is inadequate? and under what conditions is client processing the most effective solution? before getting too far along, i'd want to know if i was working on a true solution or a temp fix. and also be ready if it had do be undone at any point. a friend was recently brought in on a software solution that was pretty much at the funding point - until he documented it was less expensive and faster to simply upgrade a small subset of the hardware involved. that had initially been ruled out, but without anyone using actual numbers. ![]() what must occur on your remote machine? it sounds as if you want to transfer all relevant data to the client machine, operate on it, and store it there.
|
|
Right now, the remote machine handles an absolute shit-ton of work: 1) fetch images from a third-party server 2) perform some simple image processing 3) reformat the images 4) convert images into one huge PDF file 5) retransmit PDF of images to the end-user the client machine, meanwhile, does this: 1) open web page 2) transmit identifier to remote machine 3) sit and wait until remote machine does all of the above 4) download the PDF of images as in step 5 above What I would like to do is move everything onto the client machine, so that the client machine does this: 1) Open web page containing Java app 2) have Java app do all of the work on the client's own machine, thereby saving processing and bandwidth So, it's a security settings issue, but is there no other way around it, like assembling the document in memory and creating a sort of virtual "link" to the in-memory document, that a user could right-click-save-as on? |
