Sign in to follow this  
Luka K

[web] Need to sve jpg image from web to local disc

Recommended Posts

I have server on which is running web site for example -> http://example.com and I want when someone on his browser tipe my web site, that I take jpg picture from other site and save it on my server. And I have no idea how to do it. I need that picture (from web cam), cause when I'm using applet and I need to have picture on my local disc. Luka

Share this post


Link to post
Share on other sites
I don't really understand your question. You meant..
if somebody visits your website, you want to copy a JPG picture from one server to another one and then download the picture to your own harddisk?

I don't know, why do you want it, but... if a picture is stored on a webserver, you can download it to your harddisk using some software (for example downloading new pictures every 30 minutes) or you can download the picture from the server using a web browser).

To copy files from one server to another one, you may use functions depending on what scripting language do you use. You may copy it for example using FTP.

Share this post


Link to post
Share on other sites
On one web site I want to put an applet, and in that applet I use picture from web camera (downloading it every time from another web site). In that way finnal client who want to surf on my page must have that other web site in his java.policy file what is very complicated for them. So what I meant was that I need something that when someone want to access to my web site, my server automaticlly download that picture from that another web site, so finnal client doesn't need put promision in java.policy file.

I will download some program for every 30 minutes, but better would be if I can do it automaticlly on every visit.

Thanks,
Luka

Share this post


Link to post
Share on other sites
If you only want to view present picture of your webcamera on a website, you can use this way:

[IMG SRC='http://your_server_with_the_camera_picture.com/picture_generator.php']
If you have some web cam software, that uploads pictures on your server, you can also use:
[IMG SRC='http://your_server_with_the_camera_picture.com/thelastpicture.jpg']
For downloading the pictures to your local harddisk, you may use use

[A HREF='http://your_server_with_the_camera_picture.com/thelastpicture.jpg']Download the picture!

Share this post


Link to post
Share on other sites
We didn't understand each other.

I don't have web camera and don't have picture, I just have web adress where is picture from web camera. And every minute is new picture on that site. And I need to have the latest picture on my local disc when someone want to come on my page. And on my page I have applet that using latest picture.

So I probably need few line of code in html --> for calling program when someone come to my page, and program which will download and save picture automaticly from site where is latest picture from web cam.

Can you or someone else help me with that

Luka

Share this post


Link to post
Share on other sites
No amount of HTML will allow you to have your server perform this. If you can write a few lines of HTML to copy a file to your server, then I can write a few lines of HTML to copy a file to your server, too, and that wouldn't be nice. You need a server-side script, such as ASP, PHP, JSP, PERL, CGI or other.

From experience, PHP and PERL provide CURL, ASP.NET 2.0 provides HttpRequest, CGI can use wget, and I'm pretty sure JSP must have one kind of request or another available.

Share this post


Link to post
Share on other sites
Thanks, I get your point.

I will look at these server-side skripts and try to manage something with them.

Luka

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this