Persian.
Persian.

Reputation: 1035

Dynamically capture an image of a specific url in asp.net C#

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

Answers (3)

nikmd23
nikmd23

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

Russ Clarke
Russ Clarke

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

Govind Malviya
Govind Malviya

Reputation: 13763

Try this , you will get exact code and description also.

Upvotes: 1

Related Questions