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 8849317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:37:11+00:00 2026-06-14T12:37:11+00:00

Say I have a WebView in my page, with its content loaded by WebView.NavigateToString(string

  • 0

Say I have a WebView in my page, with its content loaded by WebView.NavigateToString(string html). Now the problem is the html string contains a few <img> tags like

<img src="http://www.remotefakesite.com/1.jpg" />

however the image can’t be downloaded correctly unless the request has a special cookie. But the request is sent by the control, I don’t know how to modify the request(adding a cookie to it). I’ve tried setting HttpRequest.DefaultWebProxy, but it doesn’t work for the requests sent by the built-in control.

An alternative solution is downloading the image by my own HttpWebRequest(with the correct cookie) to local folder and then modify the img tag in the html string to

<img src="files:///xxxxx" />

but obviously files:/// scheme is against the security policy of metro apps. Neither ms-appx nor ms-appdata works, because the downloaded images are not part of my project.

Do you have any solution?

  • 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-14T12:37:12+00:00Added an answer on June 14, 2026 at 12:37 pm

    If the image size isn’t a problem, you could try to download it using a custom HTTP request with the required cookies, base64 encode it, and insert it into the src attribute:

    <img src="data:image/png;base64,iVBOR8Q..." />
    

    And pass it with the rest of the html to the WebView using the NavigateToString method.

    This might not be the best solution in the world, but it just works, compared to other options.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web view that is loaded with an HTML that contains links.
Say I have a webview with a page that is mostly unoccupied, but has
Say i have a few fields like the following: abd738927 jaksm234234 hfk342 ndma0834 jon99322
So let's say have the following content structure: <div class=wrapper> <div class=contentOne style=width:50px></div> <div
I have a webview with a website loaded in it. When I click on
Hi I have a url say http://www.foobar.com [webView loadRequest:[NSURLRequest requestWithURL:appURL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:20.0 ]]; Now
My Android app has a main WebView (HTML loaded from a local resource) which
I have some problem with the injecting of my cookie into login.php page. This
Let's say I have a WebView that loads up twitter.com. Here's what appears in
Say I have a LinearLayout that contains multiple WebViews and I need to take

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.