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

  • Home
  • SEARCH
  • 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 7686723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:32:39+00:00 2026-05-31T19:32:39+00:00

How to link HTML string loaded from sqlite db with images stored in bundle

  • 0

How to link HTML string loaded from sqlite db with images stored in bundle

[self.wbvuContents loadHTMLString:self.page baseURL:nil];

self.page may be as the following:

<html>
<body>
<div  style='margin:20 0 0 0px'>  <img style=' ' alt='' height='48' src='images/01-01-018.jpg' width='75' /> 
</body>
</html>

and 01-01-018.jpg image is added to the bundle

when use the above code images not appeared in webview

  • 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-05-31T19:32:40+00:00Added an answer on May 31, 2026 at 7:32 pm
    NSString *path;
    NSURL *baseURL;
    path = [[NSBundle mainBundle] bundlePath];
    myBaseURL = [NSURL fileURLWithPath:path];
    
    [self.wbvuContents loadHTMLString:self.page baseURL:myBaseURL];
    

    then, if your image 01-01-018.jpg is in your bundle :

    <html>
    <body>
    <div  style='margin:20 0 0 0px'>  <img style=' ' alt='' height='48' src='01-01-018.jpg' width='75' /> 
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to pass string from url: ../page.html?code=123456 to a form (eform snippet in
What is the best way to extract RSS/ATOM URLs from HTML LINK tags? I
I have an html page which has a link called open. Once the link
I'm loading a string of HTML into a UIWebView through loadHTMLString. It produces a
I am trying to extract href and src links from an HTML string. According
I am retrieving the whole html and javascript of a page I get from
I need to create an element from this html string: <li class=station_li> <span class=seq_num></span>
How can i get Image tag from html String. I am getting description like
Given an HTML link like <a href=urltxt class=someclass close=true>texttxt</a> how can I isolate the
Just a basic html link question. I have an intranet setup, and I need

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.