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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:41:45+00:00 2026-05-10T22:41:45+00:00

Do you know what basic information MUST include a paragraph ( <w:p/> ) in

  • 0

Do you know what basic information MUST include a paragraph (<w:p/>) in document.xml inside a *.docx document, that specifies an image? I do know there must be:

<a:blip r:embed='rId4' />  

specifing the relationship id, but what else? It’s very hard to find it in Google and experimenting with cutting out tags from a ready document or reading the specification takes a lot of time.

An example with all the required tags would be greatly appreciated.

  • 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. 2026-05-10T22:41:45+00:00Added an answer on May 10, 2026 at 10:41 pm

    Word is rather picky concerning the input XML provided. To embed an image, you have to provide quite some information. Here is a simple example:

    document.xml

    <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <w:document xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships'              xmlns:v='urn:schemas-microsoft-com:vml'              xmlns:wp='http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing'              xmlns:w='http://schemas.openxmlformats.org/wordprocessingml/2006/main'>   <w:body>     <w:p>       <w:r>         <w:drawing>           <wp:inline distT='0' distB='0' distL='0' distR='0'>             <wp:extent cx='5943600' cy='3717290'/>             <wp:docPr id='1' name='Picture 0' descr='vlcsnap-325726.png'/>             <a:graphic xmlns:a='http://schemas.openxmlformats.org/drawingml/2006/main'>               <a:graphicData uri='http://schemas.openxmlformats.org/drawingml/2006/picture'>                 <pic:pic xmlns:pic='http://schemas.openxmlformats.org/drawingml/2006/picture'>                   <pic:nvPicPr>                     <pic:cNvPr id='0' name='myImage.png'/>                     <pic:cNvPicPr/>                   </pic:nvPicPr>                   <pic:blipFill>                     <a:blip r:embed='rId4'/>                     <a:stretch>                       <a:fillRect/>                     </a:stretch>                   </pic:blipFill>                   <pic:spPr>                     <a:xfrm>                       <a:off x='0' y='0'/>                       <a:ext cx='5943600' cy='3717290'/>                     </a:xfrm>                     <a:prstGeom prst='rect'>                       <a:avLst/>                     </a:prstGeom>                   </pic:spPr>                 </pic:pic>               </a:graphicData>             </a:graphic>           </wp:inline>         </w:drawing>       </w:r>     </w:p>   </w:body> </w:document> 

    document.xml.rels

    <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'>   <!-- other relationships go here -->   <Relationship Id='rId4' Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/image' Target='media/image1.png'/> </Relationships> 

    And of course the image must be added to the package at the correct location (media/image1.png)

    Since all this is rather complicated I would recommend you to use the OpenXML SDK 2.0 provided by Microsoft or another library, e.g. OpenXML4J. These libraries, especially the one from Microsoft can make your work a lot easier.

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

Sidebar

Ask A Question

Stats

  • Questions 63k
  • Answers 63k
  • 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
  • added an answer To answer your general question I would say the best… May 11, 2026 at 10:37 am
  • added an answer In your controller you can access the uploaded files as:… May 11, 2026 at 10:37 am
  • added an answer Regex cannot parse XML. Do not use regex to parse… May 11, 2026 at 10:37 am

Related Questions

Do you know what basic information MUST include a paragraph ( <w:p/> ) in
What libraries/methods do you know of that can do some basic HTML representation in
Do you know what may cause memory leaks in JavaScript? I am interested in
If you do not know what Pipe Viewer is (I did not know about
What mechanisms do you know that prevent your site from being abused by anonymous
What good profilers do you know? What is a good way to measure and
What tools do you know, other than those in Visual Studio, to analyze performance
What resources do you know dedicated to software development in C for PIC microcontrollers?
OK, I know what you're thinking, "why write a method you do not want
Does anyone know a good website that summarises what you can do with code

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.