<?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: Get Snapshot Image in Code Exchange</title>
    <link>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566523#M225</link>
    <description>&lt;P&gt;I found some old code that I wrote a long time ago.&amp;nbsp; This used the old API, so the code no longer works "as-is", the concepts are still the same.&lt;/P&gt;&lt;P&gt;Actually, looking at it again - it might still work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ifm.net.nz/cookbooks/meraki-icu.html" target="_blank" rel="noopener"&gt;https://ifm.net.nz/cookbooks/meraki-icu.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jul 2026 20:28:44 GMT</pubDate>
    <dc:creator>Philip D'Ath</dc:creator>
    <dc:date>2026-07-27T20:28:44Z</dc:date>
    <item>
      <title>Get Snapshot Image</title>
      <link>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566310#M221</link>
      <description>&lt;P&gt;I am able to generate a snapshot of a camera using the&amp;nbsp;&lt;SPAN&gt;/devices/&lt;/SPAN&gt;&lt;STRONG&gt;{serial}&lt;/STRONG&gt;&lt;SPAN&gt;/camera/generateSnapshot endpoint and receive a 202 response with a snapshot url and expiry time. However when I make a GET request to the snapshot url that was returned, it gives me a 400 error with a response of&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'&amp;lt;?xml version="1.0" encoding="iso-8859-1"?&amp;gt;\n&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n "&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="noopener"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/A&gt;"&amp;gt;\n&amp;lt;html xmlns="&lt;A href="http://www.w3.org/1999/xhtml" target="_blank" rel="noopener"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;" xml:lang="en" lang="en"&amp;gt;\n &amp;lt;head&amp;gt;\n &amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;\n &amp;lt;/head&amp;gt;\n &amp;lt;body&amp;gt;\n &amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;\n &amp;lt;/body&amp;gt;\n&amp;lt;/html&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I get the actual image bytes once it is generated?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2026 18:19:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566310#M221</guid>
      <dc:creator>Elanp</dc:creator>
      <dc:date>2026-07-26T18:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get Snapshot Image</title>
      <link>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566319#M222</link>
      <description>&lt;P&gt;I find that the snapshot is not available immediately after calling&amp;nbsp;&lt;SPAN&gt;generateSnapshot.&amp;nbsp; You have to wait for the camera to generate it and then upload it.&amp;nbsp; Think of&amp;nbsp;generateSnapshot more like a queued request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You'll need to implement a delay and retry logic to fetch it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2026 20:40:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566319#M222</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2026-07-26T20:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get Snapshot Image</title>
      <link>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566445#M223</link>
      <description>&lt;P&gt;Thank you Philip,&lt;/P&gt;&lt;P&gt;Do you know what I can expect for a standard snapshot generation time? I am creating a wait for 10-15 minutes, but am still getting a 400. Additionally, I will be trying to generate snapshots for multiple cameras simultaneously. Will this cause any performance issues? Can you elaborate as to the general expectations I should have regarding the snapshot generation performance?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2026 14:10:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566445#M223</guid>
      <dc:creator>Elanp</dc:creator>
      <dc:date>2026-07-27T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Snapshot Image</title>
      <link>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566522#M224</link>
      <description>&lt;P&gt;15 to 120s.&lt;/P&gt;&lt;P&gt;Once you have the snapshot URL, try loading it in your web browser.&lt;/P&gt;&lt;P&gt;You can generate lots of snapshot requests for different cameras at the same time.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2026 20:26:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566522#M224</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2026-07-27T20:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get Snapshot Image</title>
      <link>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566523#M225</link>
      <description>&lt;P&gt;I found some old code that I wrote a long time ago.&amp;nbsp; This used the old API, so the code no longer works "as-is", the concepts are still the same.&lt;/P&gt;&lt;P&gt;Actually, looking at it again - it might still work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ifm.net.nz/cookbooks/meraki-icu.html" target="_blank" rel="noopener"&gt;https://ifm.net.nz/cookbooks/meraki-icu.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2026 20:28:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/get-snapshot-image/m-p/5566523#M225</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2026-07-27T20:28:44Z</dc:date>
    </item>
  </channel>
</rss>

