Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Javascript to save image

Posted on 2014-02-17
3
Medium Priority
?
297 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 84

Accepted Solution

by:
Dave Baldwin earned 1000 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 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 1000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

722 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