Solved

Javascript to save image

Posted on 2014-02-17
3
284 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Obsolete font tag need to convert to CSS 3 33
Problem evaluating javascript equality expression 8 17
Html split(text) 2 27
HTML editor custom button 3 57
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
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 …

756 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