<?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 Store Image through API reply with 415 in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Store-Image-through-API-reply-with-415/m-p/2108003#M19035</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I try to use the Put request through postman to store an image into a media file:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="language-bash" tabindex="0" data-testid="code-block"&gt;&lt;CODE&gt;curl "https://your-tenant.us.qlikcloud.com/api/v1/apps/{appId}/media/files/{path}" \
 -X PUT \
 -H "Authorization: Bearer &amp;lt;API-key&amp;gt;" \
 -H "Content-type: application/octet-stream" \
 --data-binary "@/path/to/file"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Link to the documentation here:&lt;BR /&gt;&lt;A href="https://qlik.dev/apis/rest/apps#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fmedia%2Ffiles%2F-path-get" target="_blank" rel="noopener"&gt;https://qlik.dev/apis/rest/apps#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fmedia%2Ffiles%2F-path-get&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm blocked on a 415 error due to Unsupported Media Type. Not sure what i am doing wrong here. Any clue ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OlivierS_0-1692652081638.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/114849i478E468069CBCD11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OlivierS_0-1692652081638.png" alt="OlivierS_0-1692652081638.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OlivierS_1-1692652095812.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/114850i852F23FA18A72C5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OlivierS_1-1692652095812.png" alt="OlivierS_1-1692652095812.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2023 21:11:52 GMT</pubDate>
    <dc:creator>OlivierS</dc:creator>
    <dc:date>2023-08-21T21:11:52Z</dc:date>
    <item>
      <title>Store Image through API reply with 415</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Store-Image-through-API-reply-with-415/m-p/2108003#M19035</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I try to use the Put request through postman to store an image into a media file:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="language-bash" tabindex="0" data-testid="code-block"&gt;&lt;CODE&gt;curl "https://your-tenant.us.qlikcloud.com/api/v1/apps/{appId}/media/files/{path}" \
 -X PUT \
 -H "Authorization: Bearer &amp;lt;API-key&amp;gt;" \
 -H "Content-type: application/octet-stream" \
 --data-binary "@/path/to/file"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Link to the documentation here:&lt;BR /&gt;&lt;A href="https://qlik.dev/apis/rest/apps#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fmedia%2Ffiles%2F-path-get" target="_blank" rel="noopener"&gt;https://qlik.dev/apis/rest/apps#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fmedia%2Ffiles%2F-path-get&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm blocked on a 415 error due to Unsupported Media Type. Not sure what i am doing wrong here. Any clue ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OlivierS_0-1692652081638.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/114849i478E468069CBCD11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OlivierS_0-1692652081638.png" alt="OlivierS_0-1692652081638.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OlivierS_1-1692652095812.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/114850i852F23FA18A72C5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OlivierS_1-1692652095812.png" alt="OlivierS_1-1692652095812.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 21:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Store-Image-through-API-reply-with-415/m-p/2108003#M19035</guid>
      <dc:creator>OlivierS</dc:creator>
      <dc:date>2023-08-21T21:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Store Image through API reply with 415</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Store-Image-through-API-reply-with-415/m-p/2108316#M19037</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/215921"&gt;@OlivierS&lt;/a&gt;&amp;nbsp;the API expects an octet-stream, so in postman the only way of doing this (that I'm aware of) is to select binary and select the file you wish to upload. At the moment you're just passing a string that the API doesn't know what to do with.&lt;/P&gt;
&lt;P&gt;If you build your own app, then you have the flexibility to retrieve and stream the file when you make the API call, but I don't believe Postman has features to download and stream a file during an API call.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Store-Image-through-API-reply-with-415/m-p/2108316#M19037</guid>
      <dc:creator>Dave_Channon</dc:creator>
      <dc:date>2023-08-22T09:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Store Image through API reply with 415</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Store-Image-through-API-reply-with-415/m-p/2108338#M19039</link>
      <description>Hi Channon,&lt;BR /&gt;&lt;BR /&gt;I succeeded uploading a file using the API using the same method but I really need to avoid downloading the file on my device between the get URL and the PUT method. I try to find a way to download serie image into the media file through a script on the Saas. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for you quick feedback &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Store-Image-through-API-reply-with-415/m-p/2108338#M19039</guid>
      <dc:creator>OlivierS</dc:creator>
      <dc:date>2023-08-22T09:56:32Z</dc:date>
    </item>
  </channel>
</rss>

