Filter löschen
Filter löschen

Problem using 'websave'

2 Ansichten (letzte 30 Tage)
Salad Box
Salad Box am 29 Nov. 2017
Kommentiert: Walter Roberson am 26 Mär. 2018
Hi
I'm using 'websave' to save an url into an image file.
Code as below:
url='http://www.clker.com/cliparts/Q/9/h/4/M/z/female-icon.svg'; filename='female.png'; outfile=websave(filename,url);
However, the saved image file can't be opened. The thumbnail looks like shown below.
However, if I open the url in the web browser and save it manually, I could actually save it as a .png file since it has this option shown in the screenshot below.
After saved it this way, the thumbnail looks something like below
So I wonder why 'websave' saved the image but the image couldn't be displayed properly. Because when I saved it manually it worked fine and I suppose 'websave' does the same job.
Could anyone help?
Many thanks.
  7 Kommentare
Guillaume
Guillaume am 26 Mär. 2018
I agree with Rik, the initial bug report is a non-bug. Just somebody not realising that right-clicking Save image as... is not the same at all as saving the original file.
As for the problem with the zip file, while bugs are always possible, the bulk of the work of websave is handed down to Java. It is very unlikely that there is a bug in the Java code. I would suspect that it may be some connection issues or possibly an incorrectly configured webserver.
Walter Roberson
Walter Roberson am 26 Mär. 2018
"It is not good that MathWorks is not following up on this question."
This resource, MATLAB Answers, is not an official MATLAB technical support site: it is a site for community members to help other community members. Mathworks does not read the questions (not unless someone opens a bug report and points them to the question.)

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Downloads finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by