Reputation: 1035
I want to capture an image of a specific URL in asp.net C#. I can't find any thing on the web.
Upvotes: 2
Views: 1283
Reputation: 9113
You could use a web service like http://www.websnapr.com/, which has both free and paid models depending on your usage needs.
Upvotes: 1
Reputation: 17909
I'm making the assumption that you're trying to get that URL Thumbnail image that certain blog posts and google provide ?
There isn't actually a method to do exactly what you're asking for because what you need is a web browser to see how a web-page looks.
What normally happens is that an automatic process opens the URL in a browser and takes a screen shot of the window.
Similarly, you can open a Browser control and capture it's window; but I've always been a bit wary of this approach as if there's anything on that URL that demands attention (like a modal popup), it has the potential to lock your thread.
The approach we took was to have a service that was subscribed to, to capture an image and it then managed its own threading and reported urls that gave us trouble.
Upvotes: 0