<?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: Image is not storing into device. in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/image-is-not-storing-into-device/m-p/1041702#M3858</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/61305"&gt;@x_d&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try this below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the NetworkRequest { responsePath:&amp;nbsp;&lt;I&gt;destData&lt;/I&gt;&lt;SPAN&gt;.fileUrl(&lt;/SPAN&gt;&lt;SPAN&gt;"appstudio.png"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And the when you access it on the Image { source:&amp;nbsp;&lt;I&gt;destData&lt;/I&gt;.fileUrl("appstudio.png")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Erwin&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 19:45:08 GMT</pubDate>
    <dc:creator>ErwinSoekianto</dc:creator>
    <dc:date>2021-03-29T19:45:08Z</dc:date>
    <item>
      <title>Image is not storing into device.</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/image-is-not-storing-into-device/m-p/1040565#M3854</link>
      <description>&lt;P&gt;Hi, I tried&amp;nbsp; to download an image from server and store it locally on the first page and then on second page i tried to show that image using the local path(where the downloaded image is stored) . I tested this example on desktop and on my mobile using&amp;nbsp;appstudio player. It is working fine over there but on android it is not working. the image does not get saves to the path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the First_page page1.qml&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Page{
    id: app
    FileInfo {
            id: destData
            url: "~"
        }
//Downloads an image from the web
NetworkRequest {
    id: networkRequest
    url: "http://appstudio.arcgis.com/images/index/introview.jpg"
    responsePath: destData.path +"/appstudio.jpg"
    property url imagePath: responsePath

   onReadyStateChanged: {
        if (readyState == NetworkRequest.DONE) {
       }
    }
    onError: {
        console.log(errorText + ", " + errorCode)
        image.source = ""
    }
}

Column{
    Layout.alignment: Qt.AlignHCenter
    spacing: 70 
    Layout.rightMargin: 20
    Image {
        id:btn_pre
        source: "../../assets/images/btn_pre.png"
        MouseArea{
            anchors.fill: parent
            onClicked: {
                stackView.push("page2.qml");
                             }
        }
    }
    ColumnLayout {
        spacing: 20
        Button {
            id:download
            text: "Download Request (Download Image)"
            Layout.margins: 2
            Layout.fillWidth: true
            onClicked: {
                networkRequest.send({f:"json"});
            }
        }
    }
}
}
[[And Here is Second_page page2.qml]]
Page{
    id: apptest
    Column{
        spacing: 50
    Row{
        Layout.alignment: Qt.AlignHCenter
        Layout.topMargin:20
        spacing: 70
        Layout.rightMargin: 20
        Image {
            id:btn_pre
            source: "../../assets/images/btn_pre.png"
            MouseArea{
                anchors.fill: parent
                onClicked: {
                      stackView.pop()
                 }
            }
        }
    }
    Image {
        id: image
        Layout.margins: 10
        width: 200
        height: 400
        source: "appstudio.jpg"
    }
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Mar 2021 12:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/image-is-not-storing-into-device/m-p/1040565#M3854</guid>
      <dc:creator>x_d</dc:creator>
      <dc:date>2021-03-25T12:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Image is not storing into device.</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/image-is-not-storing-into-device/m-p/1041702#M3858</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/61305"&gt;@x_d&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try this below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the NetworkRequest { responsePath:&amp;nbsp;&lt;I&gt;destData&lt;/I&gt;&lt;SPAN&gt;.fileUrl(&lt;/SPAN&gt;&lt;SPAN&gt;"appstudio.png"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And the when you access it on the Image { source:&amp;nbsp;&lt;I&gt;destData&lt;/I&gt;.fileUrl("appstudio.png")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Erwin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 19:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/image-is-not-storing-into-device/m-p/1041702#M3858</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2021-03-29T19:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Image is not storing into device.</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/image-is-not-storing-into-device/m-p/1041811#M3860</link>
      <description>&lt;P&gt;I'm getting this error,&lt;/P&gt;&lt;P&gt;&amp;nbsp; {{&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Property 'fileUrl' of object FileInfo(0x1c95f5581b0) is not a function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}}&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 04:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/image-is-not-storing-into-device/m-p/1041811#M3860</guid>
      <dc:creator>x_d</dc:creator>
      <dc:date>2021-03-30T04:18:54Z</dc:date>
    </item>
  </channel>
</rss>

