Solved

Javascript to save image

Posted on 2014-02-17
3
293 Views
Last Modified: 2014-03-14
Dear Experts,

I have a problem to save images on web page to specified local path using javascript.
It seems that the browser do not allow javascript to to that because of security or virus protection...

Do you have any solution for this? Please help!

Regards.
0
Comment
Question by:FSOFT-SA
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39864237
No, you're right.  The browsers do not allow javascript to save files locally because of security restrictions.  If a web page could save files to your computer without your permission, then we all would be infested with viruses all the time.  If you find a way to do this with your web page javascript, you will shortly find your web site blocked by the anti-virus programs.
0
 

Author Comment

by:FSOFT-SA
ID: 39887977
So, It means there's no solution for this.
Or at least, we must ask permission from user. After that, we can save the file to the specified path on local. User doesn't need to specify the path to save image.

Please help.
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 500 total points
ID: 39887996
No, that's not true either.  The user can right-click on an image and save it anywhere they want.  You can't force them to download it and you can not specify the path though you could suggest it on the page where the image is.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question