<?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: QML download and save binary file in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817490#M1794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zdenek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you refer to the AppStudio Framework Runtime, there are a number of Portal objects that you can use to build to browse Portal Items:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Portal&lt;/P&gt;&lt;P&gt;- PortalDownloadUserContent or PortalSearchItems&lt;/P&gt;&lt;P&gt;- PortalDownloadItemInfo&lt;/P&gt;&lt;P&gt;- PortalDownloadItemData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- When running Qt Creator, select Help and open AppStudio Framework Runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you want to use the NetworkRequest object, you can directly access the REST API or connect to any web server to download the package. As your data is secured behind HTTPS, there are a number of HTTPS considerations when using the NetworkRequest object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Handle SSL certificate challenge correctly via onSslErrors / on sslErrorsIgnored signals and the ignoredSslErrors property&lt;/P&gt;&lt;P&gt;- If HTTPS is secured, supply credentials (i.e. username / password)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As to your specific Basic Authentication support question, that's really up to the SSL algorithms installed on your device. Basic Authentication, I would expect, to be universally available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2016 23:14:51 GMT</pubDate>
    <dc:creator>StephenQuan1</dc:creator>
    <dc:date>2016-05-04T23:14:51Z</dc:date>
    <item>
      <title>QML download and save binary file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817484#M1788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am looking for the way how to download and save binary files (up to 1GB).&lt;/P&gt;&lt;P&gt;I found out that with direct QML is not possible to save the file. AppStudio has &lt;SPAN style="font-family: courier new,courier;"&gt;FileFolder&lt;/SPAN&gt; class with &lt;SPAN style="font-family: courier new,courier;"&gt;writeFile&lt;/SPAN&gt; function, but it seems that it writes only text files.&lt;/P&gt;&lt;P&gt;I got downloading working somehow, with QM&lt;SPAN style="color: #303030;"&gt;L &lt;SPAN style="font-family: courier new,courier;"&gt;XMLHttpRequest&lt;/SPAN&gt;, but I think it is not usable for large files because you have to read the whole file in memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Does anybody use downloading and saving files in QML?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Thank in advanced,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Zdenek J.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 14:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817484#M1788</guid>
      <dc:creator>ZdenekJankovsky</dc:creator>
      <dc:date>2016-02-02T14:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: QML download and save binary file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817485#M1789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN style="color: #303030;"&gt;Zdenek J.,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;The best component for this is the NetworkRequest object and setting the responseFile attribute. This will ensure that the file is downloaded directly to file whilst keeping a low memory footprint.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Stephen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 23:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817485#M1789</guid>
      <dc:creator>StephenQuan1</dc:creator>
      <dc:date>2016-02-02T23:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: QML download and save binary file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817486#M1790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/152825"&gt;Stephen Quan&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;thank you for this reference, I wasn't able to find it on my own in the help/doc.&lt;/P&gt;&lt;P&gt;It is in ArcGIS.AppFramework. There is a Esri Sample using it as well: &lt;A href="http://www.arcgis.com/home/item.html?id=bfb0dec97a254a0d9d609a3e3cc95598"&gt;http://www.arcgis.com/home/item.html?id=bfb0dec97a254a0d9d609a3e3cc95598&lt;/A&gt; - better to search it through AppStudio itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, I will give that a try.&lt;/P&gt;&lt;P&gt;Zdenek J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 08:42:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817486#M1790</guid>
      <dc:creator>ZdenekJankovsky</dc:creator>
      <dc:date>2016-02-03T08:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: QML download and save binary file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817487#M1791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I would like to have one more question: is there any chance to use NetworkRequest object to download files from secured web folder, e.g. HTTPS Basic Authentication?&lt;/P&gt;&lt;P&gt;Or I am not sure if it would be possible to upload our files (around 750MB each) to Portal and then downloaded from Portal with portal credentials in the play.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for comments on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zdenek J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 08:13:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817487#M1791</guid>
      <dc:creator>ZdenekJankovsky</dc:creator>
      <dc:date>2016-02-10T08:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: QML download and save binary file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817488#M1792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px; background-color: #edf8ca;"&gt;Hello &lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #303030; background-color: #edf8ca;"&gt;Zdenek J.,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #303030; background-color: #edf8ca;"&gt;Sorry for the late response. HTTPS is subject to the SSL algorithms that your device is capable of.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #303030; background-color: #edf8ca;"&gt;Having said that, I would expect that every device supports HTTPS Basic Authentication.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px; background-color: #edf8ca;"&gt;The other thing to clarify is which HTTP method are you using to upload? HTTP GET? HTTP POST? Or something else? i.e. HTTP PUT?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #303030; background-color: #edf8ca;"&gt;Stephen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 05:30:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817488#M1792</guid>
      <dc:creator>StephenQuan1</dc:creator>
      <dc:date>2016-04-04T05:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: QML download and save binary file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817489#M1793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank you for clarification.&lt;/P&gt;&lt;P&gt;I see, I have written my last post quite confusing. Workflow with the app is this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;SDE geodatabase with the data,&lt;/LI&gt;&lt;LI&gt;generating offline *.geodatabase package with Python every week from main SDE (it is a file up to 1GB),&lt;/LI&gt;&lt;LI&gt;now we try to solve how to get the new package of data to Android tablet:&lt;OL&gt;&lt;LI&gt;manualy copy the *.geodatabase to Android tablet (we use this now),&lt;/LI&gt;&lt;LI&gt;upload the package to Portal (with Python) and let AppStudio to download it from portal? (Does AppStudio QML SDK have classes for browsing Portal items and dowload them?)&lt;/LI&gt;&lt;LI&gt;copy the package to dedicated web server (with Python) and let AppStudio do download it from it? (HTTPS, Should at least Basic Authentication work with NetworkRequest object?)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Well I hope I put it on the right track.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zdenek J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 06:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817489#M1793</guid>
      <dc:creator>ZdenekJankovsky</dc:creator>
      <dc:date>2016-04-04T06:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: QML download and save binary file</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817490#M1794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zdenek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you refer to the AppStudio Framework Runtime, there are a number of Portal objects that you can use to build to browse Portal Items:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Portal&lt;/P&gt;&lt;P&gt;- PortalDownloadUserContent or PortalSearchItems&lt;/P&gt;&lt;P&gt;- PortalDownloadItemInfo&lt;/P&gt;&lt;P&gt;- PortalDownloadItemData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- When running Qt Creator, select Help and open AppStudio Framework Runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you want to use the NetworkRequest object, you can directly access the REST API or connect to any web server to download the package. As your data is secured behind HTTPS, there are a number of HTTPS considerations when using the NetworkRequest object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Handle SSL certificate challenge correctly via onSslErrors / on sslErrorsIgnored signals and the ignoredSslErrors property&lt;/P&gt;&lt;P&gt;- If HTTPS is secured, supply credentials (i.e. username / password)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As to your specific Basic Authentication support question, that's really up to the SSL algorithms installed on your device. Basic Authentication, I would expect, to be universally available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 23:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/qml-download-and-save-binary-file/m-p/817490#M1794</guid>
      <dc:creator>StephenQuan1</dc:creator>
      <dc:date>2016-05-04T23:14:51Z</dc:date>
    </item>
  </channel>
</rss>

