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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:23:18+00:00 2026-05-11T19:23:18+00:00

Is there any difference between using <img src=pathto.png /> and <img src=data:image/png;base64,encodedpngdata… /> from

  • 0

Is there any difference between using <img src=pathto.png /> and <img src=data:image/png;base64,encodedpngdata... /> from the perspective of the server?

In the case of src=pathto.png will the server just encode the image and send it to the browser?

  • 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-11T19:23:18+00:00Added an answer on May 11, 2026 at 7:23 pm

    The first example references an external resource by specifying its URI. So this will result in making an additional request to that resource to receive the data.

    The second example does also reference a resource but the data of that resource is directly embedded in the URI (see data URI scheme). So no additional request is needed.

    Both methods have its advantages and disadvantages:

                            external    embedded
    separate request (-)       ✓           ✗
    cachable (+)               ✓           ✗
    referencable (+)           ✓           ✗
    compression (+)            ✓           ✗
    
    • External resource data
      The advantage of using an external resource is that such resources can be cached and used in different documents without making requests for every appearance of that resources.
      A disadvantage is that it takes that first additional request.

    • Embedded resource data
      An Advantage of embedding the resource data directly into the document is to save an additional request.
      But a disadvantage is that such resources cannot be cached or referenced on multiple appearances in one document or different documents. Also it cannot be compressed using deflate or gzip. In fact, the Base64 encoding will bloat the size by the factor 4/3.

    See also the first rule Make Fewer HTTP Requests of Best Practices for Speeding Up Your Web Site.

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

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Basically no. You could attempt to do it by writing… May 11, 2026 at 11:48 pm
  • Editorial Team
    Editorial Team added an answer Try: .Where(rules.Select(r => r.ID).Contains(arr.AuditRuleEnterpriseID.AuditID)) or, in query syntax where rules.Select(r… May 11, 2026 at 11:48 pm
  • Editorial Team
    Editorial Team added an answer The key to resolving this is to correctly identify the… May 11, 2026 at 11:48 pm

Related Questions

Is there any difference between using <img src=pathto.png /> and <img src=data:image/png;base64,encodedpngdata... /> from
I saw this question and I am wondering about the same thing in JavaScript.
I am bit confused about the difference between the usage of std::remove algorithm. Specifically
In our project the Java webservice communicate with the backend program written in C
What is the difference between the following? <asp:Label runat=server>Hello World</asp:Label> <asp:Label runat=server Text=Hello World></asp:Label>

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.