<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get the absolute path of a file/image in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-get-the-absolute-path-of-a-file-image/m-p/1015421#M5732</link>
    <description>&lt;P&gt;You can do /project_folder/whatever/whatever&lt;/P&gt;&lt;P&gt;That will always reference from your project folder.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 02:53:49 GMT</pubDate>
    <dc:creator>VictorTey</dc:creator>
    <dc:date>2021-01-11T02:53:49Z</dc:date>
    <item>
      <title>How to get the absolute path of a file/image</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-get-the-absolute-path-of-a-file-image/m-p/1014656#M5730</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I need absolute path of a file suppose my path structure is like this&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-myProject_Folder
    ~assets_folder
       -images_folder
    ~demo_folder
        -first_page.qml
Here i want to show the image
                   Image {
                        id: img
                        height:200
                        width:200
                        source:"../assets/images/imageName.png" 
                        fillMode: Image.PreserveAspectFit
                        anchors.centerIn: parent
                    }&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;By using this "../assets/images/imagename.png"&lt;/SPAN&gt;&amp;nbsp; the image is showing on normal pages, but on map pages where i have to show the marker images and tracking image , these are not showing. And I also have tried&amp;nbsp;&lt;SPAN&gt;this&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;Qt.resolvedUrl (URL), it is also not working. Doesn't shows any error but images are also not showing.&amp;nbsp; Is there anything to get an absolute file path so that it will work in every device and every page.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;also while testing the app on android device the images are showing but on iphone it's not showing. I don't understand what's wrong.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 15:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-get-the-absolute-path-of-a-file-image/m-p/1014656#M5730</guid>
      <dc:creator>x_d</dc:creator>
      <dc:date>2021-01-07T15:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the absolute path of a file/image</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-get-the-absolute-path-of-a-file-image/m-p/1015421#M5732</link>
      <description>&lt;P&gt;You can do /project_folder/whatever/whatever&lt;/P&gt;&lt;P&gt;That will always reference from your project folder.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 02:53:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-get-the-absolute-path-of-a-file-image/m-p/1015421#M5732</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2021-01-11T02:53:49Z</dc:date>
    </item>
  </channel>
</rss>

