D-Link IP Cameras for Business > DCS-7513

Camera image download

(1/1)

wolde:
Hello,

i have this Link: http://192.168.0.20/image/jpeg.cgi?profileid=1

now I want to download the image with an html Code, but it didn't work. Do you know a solution?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<script type="text/javascript">



function load()
{
var link = document.createElement('a');
link.href = 'http://192.168.0.20/image/jpeg.cgi?profileid=1';
link.download = 'DownloadImg.jpg';
document.body.appendChild(link);
link.click();
document.body.removeChild(link);

}



</script>
</head>
<body onload="load()">
</body>
</html>

wolde:
Hello,

i have this Link: http://192.168.0.20/image/jpeg.cgi?profileid=1

Camera: DCS-7513

now I want to download the image with an html Code, but it didn't work. Do you know a solution?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<script type="text/javascript">



function load()
{
var link = document.createElement('a');
link.href = 'http://192.168.0.20/image/jpeg.cgi?profileid=1';
link.download = 'DownloadImg.jpg';
document.body.appendChild(link);
link.click();
document.body.removeChild(link);

}



</script>
</head>
<body onload="load()">
</body>
</html>

Navigation

[0] Message Index

Go to full version