cancel
Showing results for 
Search instead for 
Did you mean: 

Saving a picture from a webpage

Stefande_Moor
Level 3
Hi, I'm trying to build a process that saves a picture from a website. The picture is not of a fixed size per case and could sometimes even be broader than the webpage, which eliminates the option for screen capture in itself. Does anyone know how to tackle this!?
4 REPLIES 4

TomBlackburn1
Level 7
Does the image have a static path/name? e.g. - http://www.example.com/image.jpg

Stefande_Moor
Level 3
Hi Tom, Unfortunately the file name is dynamic with no clear logic refering to the case. I have added a screen capture on my original post.

TomBlackburn1
Level 7
I can't see the screen capture. You could programmatically download all images and save them locally using C#. However if there are multiple images on the site, then I'm not sure how you would know which image you need.

Stefande_Moor
Level 3
I updated the screen capture to highlight the file. It might be that it is called graph.jpg as far as i could identify. However this does not follow from the properties of the picture. @Bastiaan The temporary file does not hold the specific file, probably since the picture is embedded in the webpage. Thanks anyway for the suggestion.