The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > General Programming > Java


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.
Reply
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 10-27-2007, 05:52 AM
zaher1988 zaher1988 is offline
Novice
Join Date: Oct 2007
Posts: 11
iTrader: (0)
zaher1988 is on a distinguished road
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

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #2 (permalink)  
Old 10-27-2007, 07:51 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,110
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
you can actually generate them directly to web server.. You basically need some connection between your applet and your web server, and then write it on the web server instead...?

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #3 (permalink)  
Old 10-27-2007, 01:48 PM
zaher1988 zaher1988 is offline
Novice
Join Date: Oct 2007
Posts: 11
iTrader: (0)
zaher1988 is on a distinguished road
Quote:
Originally Posted by HelloWorld View Post
you can actually generate them directly to web server.. You basically need some connection between your applet and your web server, and then write it on the web server instead...?

How can this be done?

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #4 (permalink)  
Old 10-27-2007, 11:19 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,110
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
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

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #5 (permalink)  
Old 10-28-2007, 01:14 AM
zaher1988 zaher1988 is offline
Novice
Join Date: Oct 2007
Posts: 11
iTrader: (0)
zaher1988 is on a distinguished road
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...

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by zaher1988 : 10-28-2007 at 01:18 AM.
Reply With Quote
  #6 (permalink)  
Old 10-28-2007, 12:01 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,110
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
Quote:
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?
I'm not sure with this one, you may want to double check.. but if you have the total control of the computer, I would say that you are fine. I'm not sure about applets but you can even overwrite files in Win32 if you want to as long as you have the administrator permission on your PC

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 11:14 PM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50