Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9102201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:19:22+00:00 2026-06-17T01:19:22+00:00

I fetch a URL into an IFRAME, and now would like to capture a

  • 0

I fetch a URL into an IFRAME, and now would like to capture a thumbnail of the result to later show the user the links they have followed.

void receiveHtml(Event e) {
  ...
  iframe.convertToImage... // <----- ????? How to do this?
}

IFrameElement iframe = query('#iframehtml') as IFrameElement;
...
iframe.on.load.add(receiveHtml);
...
iframe.src = url; // E.g. url='http://someplace.com/dir/'

Is there a way in DART to capture the iframe document to an image? (which I can then shrink to a thumbnail and store for later).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T01:19:23+00:00Added an answer on June 17, 2026 at 1:19 am

    You can’t do this on the client-side, at least not without the iframe being in the same origin (“the same website”). Otherwise, it would be a security risk, because it opens the door to many possibilities like screenshotting a bank website with the user’s bank account details.

    However, you could do this on the server side, but it does not get much easier.

    One thing you could do is to install webkit2png and let it make screenshots of websites. You could just call it something like this:

    import 'dart:io';
    
    main() {
      Process.run('python', ['/path/to/webkit2png', 'http://google.com']).then((result) {
        // Here you can open and do whatever you want with the screenshots.
        // The files are placed in the current directory.
        print(new File('somescreenshot.png').readAsBytesSync());
      });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I run into follow problem. Did I miss anything? Association.all().count() 1 Association.all().fetch(1) [Association(**{'server_url': u'server-url',
i am trying to fetch anything that looks like a URL from a string
I have an array ($x) containing 748 URL:s. Now, I want to fetch a
Without using matplotlib finance module. I like to get the url data into a
I'd like to upload external images (for which I have the URL) into the
My PHP is prepending the pages URL into my link for some reason. Links
I'm using the Twitter avatar API to fetch a user's avatar URL on the
my script: var Url = 'http://readonline.egscans.com/Remnant/Chapter_036_[END]'; var response = UrlFetchApp.fetch(Url).getContentText(); I get this error
i need to fetch a url with javascript/jquery and not php. i've read that
I understand how to fetch a URL text page and loop over the results

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.