![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| Uploading files to web server I have created a java applet that generate images to local disk. I would like to upload these generated images directly after they have been generated to the web server. And if possible to generate them directly on the web server that would be even easier. Thank you |
| |
| |||
| Quote:
How can this be done? |
| ||||
| First of all, do you know any networking programming with Java? if not then you may want to take a look at this: Introduction to Web Server Application To just have some glance of what is networking like in Java. Once you're done, then here are the few steps that you'll need to do in order to do what you're trying to do: 1. Make a connection between your computer and server 2. Depending on how do you want to implement this, but I'd say if you want to have both copies on the local and server, then you can generates the image in the local computer, and then read it, then write it to the server by using the connection. I personally haven't done the writing part, but on the web server example is basically writing the image FROM the server to the browser's client, you can do the reverse as well... I hope that helps, you may also want to show us some code ![]() |
| |||
| Alright, well i will have a look at this, but before i proceed i'd like to shed some light on my program. My program is an applet, when you loaded it, you can take screen shots using it. However, i read somewhere that there is a security restriction only for applets that does not allow taking screenshots and writing them to the computer browing the page or even the webserver where it is hosted, is this true? Because if this true, then we cant create the images on the local computer then upload them... Last edited by zaher1988 : 10-28-2007 at 01:18 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
| |