<?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: PHP - Show thumbnail in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/240177#M13363</link>
    <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/46043402/php-dropbox-api-v2-show-thumbnail" target="_blank"&gt;https://stackoverflow.com/questions/46043402/php-dropbox-api-v2-show-thumbnail&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, I would&amp;nbsp;recommend doing a `echo $result;` to make sure the call worked. (You're checking for a curl error, but even if the connection succeeds, you need to check if the&amp;nbsp;Dropbox API call was valid.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail" target="_self"&gt;/2/files/get_thumbnail&lt;/A&gt; is a &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_self"&gt;Content-Download&lt;/A&gt; style endpoint, so you need to call it differently than &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;/2/files/list_folder&lt;/A&gt;, which is an &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_self"&gt;RPC&lt;/A&gt; style endpoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's an example of making a &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_self"&gt;Content-Download&lt;/A&gt; call (albeit for&amp;nbsp;/2/files/download, but it will work about the same) here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/documentation/dropbox-api/408/downloading-a-file/20965/downloading-a-file-with-metadata-via-curl-in-php#t=201709051713321642784" target="_self"&gt;https://stackoverflow.com/documentation/dropbox-api/408/downloading-a-file/20965/downloading-a-file-with-metadata-via-curl-in-php#t=201709051713321642784&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at your code, there seems to be a few things you will need to update:&lt;/P&gt;
&lt;P&gt;- Content-Download calls require the parameters in a header, not the body.&lt;/P&gt;
&lt;P&gt;- Your parameters don't seem to be valid JSON. (You appear to be missing a closing '}').&lt;/P&gt;
&lt;P&gt;- You should send an empty 'Content-Type', not 'application/json'.&lt;/P&gt;
&lt;P&gt;- Not strictly required, but we highly discourage disabling SSL verification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you get the thumbnail data, what you do with it is up to you. E.g., save it to a file, such as in the example, stream back somewhere, etc.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2017 17:38:23 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-09-05T17:38:23Z</dc:date>
    <item>
      <title>PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/239811#M13349</link>
      <description>&lt;P&gt;Hi peepz,&lt;BR /&gt;&lt;BR /&gt;I'm running a PHP project&amp;nbsp;for which I read a specific Dropbox directoty using 'list_folder'. Five&amp;nbsp;files (JPG), matching certain criteria are selected from all returned files.&amp;nbsp;So far, so good.&lt;BR /&gt;Now, I want to embed these five images in a webpage. Somehow, I don't succeed in this. It's clear to me I'm overlooking something &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;Assumption: I create a e.g. photo.php file which uses 'get_thumbnail' to display the image. I call this photo.php file for each of the five&amp;nbsp;&amp;lt;img&amp;gt; on my page.&lt;BR /&gt;&lt;BR /&gt;When I use the Api Explorer, &amp;nbsp;the files are found just fine. However, I have no clue on how to implement this into a PHP file.&amp;nbsp;I know the result is some sort of&amp;nbsp;image content already, but&amp;nbsp;I just cannot get it to work. Where do I start?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Knal&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:19:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/239811#M13349</guid>
      <dc:creator>knalpiap</dc:creator>
      <dc:date>2019-05-29T09:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/239982#M13350</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/476844"&gt;@knalpiap&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's try a couple of things together!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd be glad to work on that with you if you give me more details in your reply! For instance, could you describe what you've been trying to accomplish step-by-step and (if possible) send us&amp;nbsp;some examples, so that we re-create the behavior &amp;amp; figure out a solution with you.&lt;/P&gt;
&lt;P&gt;Thanks in advance, looking forward to hearing back from you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 00:05:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/239982#M13350</guid>
      <dc:creator>Jane</dc:creator>
      <dc:date>2019-03-12T00:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/240066#M13351</link>
      <description>&lt;P&gt;Hi Jane, I would appreciate that very much! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;Until now I've created dropbox.php:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php&lt;BR /&gt;&lt;BR /&gt;$ch = curl_init();&lt;BR /&gt;&lt;BR /&gt;curl_setopt($ch, CURLOPT_URL, "https://api.dropboxapi.com/2/files/list_folder");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CAINFO, "cacert.pem");
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"path":"/images","recursive":true,"include_media_info":true,"include_deleted":false}');
curl_setopt($ch, CURLOPT_POST, 1);

$headers = array();
$headers[] = "Authorization: Bearer XXX_SECRET_TOKEN_XXX";
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close ($ch);

$json = json_decode($result, true);&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I filter the $json['entries'] with some functions, which hand me all data of the 5 images I need.&lt;BR /&gt;Eventually, I want to display 5 thumbnails on my page, so I figured I call them separately using another file, image.php.&lt;BR /&gt;Image.php should then (in my opinion) serve the image as if it were an image file. That is where I get lost:&lt;BR /&gt;&lt;BR /&gt;Image.php looks&amp;nbsp;as follows:&lt;/P&gt;&lt;PRE&gt;&amp;lt;?PHP

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://content.dropboxapi.com/2/files/get_thumbnail");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CAINFO, "cacert.pem");
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"path":"/DropsyncFiles/2017.09.01_22.36.01/20170901223632654.jpg","format":{".tag":"jpeg"},"size":{".tag":"w1024h768"}');
curl_setopt($ch, CURLOPT_POST, 1);

$headers = array();
$headers[] = "Authorization: Bearer XXX_SECRET_TOKEN_XXX";
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close ($ch);

header('Content-Type: image/jpeg');
imagejpeg( $result );
imagedestroy( $result );

?&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;As you can see, I've lost my way and I have no cluo on what I'm doing. I've read the documentation stating that the respons is the image data but I can't seem to output it in the right way. The file however takes some time to load, so something's happening &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;Should you&amp;nbsp;whish some additional info, please let me know!&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Knal&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 09:49:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/240066#M13351</guid>
      <dc:creator>knalpiap</dc:creator>
      <dc:date>2017-09-05T09:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/240177#M13363</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/46043402/php-dropbox-api-v2-show-thumbnail" target="_blank"&gt;https://stackoverflow.com/questions/46043402/php-dropbox-api-v2-show-thumbnail&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, I would&amp;nbsp;recommend doing a `echo $result;` to make sure the call worked. (You're checking for a curl error, but even if the connection succeeds, you need to check if the&amp;nbsp;Dropbox API call was valid.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail" target="_self"&gt;/2/files/get_thumbnail&lt;/A&gt; is a &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_self"&gt;Content-Download&lt;/A&gt; style endpoint, so you need to call it differently than &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;/2/files/list_folder&lt;/A&gt;, which is an &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_self"&gt;RPC&lt;/A&gt; style endpoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's an example of making a &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_self"&gt;Content-Download&lt;/A&gt; call (albeit for&amp;nbsp;/2/files/download, but it will work about the same) here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/documentation/dropbox-api/408/downloading-a-file/20965/downloading-a-file-with-metadata-via-curl-in-php#t=201709051713321642784" target="_self"&gt;https://stackoverflow.com/documentation/dropbox-api/408/downloading-a-file/20965/downloading-a-file-with-metadata-via-curl-in-php#t=201709051713321642784&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at your code, there seems to be a few things you will need to update:&lt;/P&gt;
&lt;P&gt;- Content-Download calls require the parameters in a header, not the body.&lt;/P&gt;
&lt;P&gt;- Your parameters don't seem to be valid JSON. (You appear to be missing a closing '}').&lt;/P&gt;
&lt;P&gt;- You should send an empty 'Content-Type', not 'application/json'.&lt;/P&gt;
&lt;P&gt;- Not strictly required, but we highly discourage disabling SSL verification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you get the thumbnail data, what you do with it is up to you. E.g., save it to a file, such as in the example, stream back somewhere, etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 17:38:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/240177#M13363</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-05T17:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/240199#M13366</link>
      <description>&lt;P&gt;Hi Greg,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for pointing me in the right direction! &lt;BR /&gt;I've changed the code based on what I understood from your input:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?PHP

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://content.dropboxapi.com/2/files/get_thumbnail");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$headers = array();
$headers[] = "Authorization: Bearer XXX_SECRET_CODE_XXX";
$headers[] = "Content-Type:";
$headers[] = 'Dropbox-API-Arg: {"path":"/DropsyncFiles/2017.09.01_22.36.01/20170901223632654.jpg","format":{".tag":"jpeg"},"size":{".tag":"w1024h768"}}';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close ($ch);

//echo imagecreatefromstring( $result ); &amp;lt;-- Returns 'Resource id #2' in the browser

echo $result;

?&amp;gt;&lt;/PRE&gt;
&lt;P&gt;The current output is complete jibberish like follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ÿØÿà&amp;#16;JFIF&amp;#1;&amp;#1;&amp;#1;&amp;#1;ÿâ&amp;#2;DICC_PROFILE&amp;#1;&amp;#1;&amp;#2;4mntrRGB XYZ &amp;#7;Þ&amp;#6;&amp;#4;&amp;#17;+8acsp&amp;#1;öÖ&amp;#1;Ó- descüybkpt&amp;#1;x&amp;#20;wtpt&amp;#1;Œ&amp;#20;cprt&amp;#1; &amp;#21;rXYZ&amp;#1;¸&amp;#20;gXYZ&amp;#1;Ì&amp;#20;bXYZ&amp;#1;à&amp;#20;rTRC&amp;#1;ô@gTRC&amp;#1;ô@bTRC&amp;#1;ô@desc&amp;#31;sRGB IEC61966-2-1 black scaledXYZ &amp;#3;&amp;#22;&amp;#3;3&amp;#2;¤XYZ öÖ&amp;#1;Ó-textDropbox, Inc.XYZ o¢8õ&amp;#3;&amp;#144;XYZ b™·…&amp;#24;ÚXYZ $ &amp;#15;„¶Ïcurv&amp;#26;Å&amp;#1;Ì&amp;#3;b&amp;#5;“&amp;#8;k&amp;#11;ö&amp;#16;@&amp;#21;Q&amp;#27;4!ñ)&amp;#144;2&amp;#24;;’F&amp;#5;Qv]íkpz&amp;#5;‰²š|¬i¿~ÓÁé7ÿÿÿÛC&amp;#6;&amp;#4;&amp;#5;&amp;#6;&amp;#5;&amp;#4;&amp;#6;&amp;#6;&amp;#5;&amp;#6;&amp;#7;&amp;#7;&amp;#6;&amp;#8; &amp;#16; &amp;#20;&amp;#14;&amp;#15;&amp;#12;&amp;#16;&amp;#23;&amp;#20;&amp;#24;&amp;#24;&amp;#23;&amp;#20;&amp;#22;&amp;#22;&amp;#26;&amp;#29;%&amp;#31;&amp;#26;&amp;#27;#&amp;#28;&amp;#22;&amp;#22; , #&amp;amp;')*)&amp;#25;&amp;#31;-0-(0%()(ÿÛC&amp;#1;&amp;#7;&amp;#7;&amp;#7; &amp;#8; &amp;#19; &amp;#19;(&amp;#26;&amp;#22;&amp;#26;((((((((((((((((((((((((((((((((((((((((((((((((((ÿÀ&amp;#17;&amp;#8;&amp;#1;à&amp;#2;€&amp;#3;&amp;#1;"&amp;#2;&amp;#17;&amp;#1;&amp;#3;&amp;#17;&amp;#1;ÿÄ&amp;#31;&amp;#1;&amp;#5;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#2;&amp;#3;&amp;#4;&amp;#5;&amp;#6;&amp;#7;&amp;#8;	&amp;#11;ÿÄµ&amp;#16;&amp;#2;&amp;#1;&amp;#3;&amp;#3;&amp;#2;&amp;#4;&amp;#3;&amp;#5;&amp;#5;&amp;#4;&amp;#4;&amp;#1;}&amp;#1;&amp;#2;&amp;#3;&amp;#4;&amp;#17;&amp;#5;&amp;#18;!1A&amp;#6;&amp;#19;Qa&amp;#7;"q&amp;#20;2&amp;#129;‘¡&amp;#8;#B±Á&amp;#21;RÑð$3br‚	&amp;#22;&amp;#23;&amp;#24;&amp;#25;&amp;#26;%&amp;amp;'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ&amp;#31;&amp;#1;&amp;#3;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#1;&amp;#2;&amp;#3;&amp;#4;&amp;#5;&amp;#6;&amp;#7;&amp;#8;	&amp;#11;ÿÄµ&amp;#17;&amp;#2;&amp;#1;&amp;#2;&amp;#4;&amp;#4;&amp;#3;&amp;#4;&amp;#7;&amp;#5;&amp;#4;&amp;#4;&amp;#1;&amp;#2;w&amp;#1;&amp;#2;&amp;#3;&amp;#17;&amp;#4;&amp;#5;!1&amp;#6;&amp;#18;AQ&amp;#7;aq&amp;#19;"2&amp;#129;&amp;#8;&amp;#20;B‘¡±Á	#3Rð&amp;#21;brÑ &amp;#22;$4á%ñ&amp;#23;&amp;#24;&amp;#25;&amp;#26;&amp;amp;'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚâãäåæçèéêòóôõö÷øùúÿÚ&amp;#12;&amp;#3;&amp;#1;&amp;#2;&amp;#17;&amp;#3;&amp;#17;?ùÁIèiØëH£¹Ç&amp;#3;&amp;#20;áÔúö®C±7Ô@:Ò&amp;#129;&amp;#143;JZP2;ÒZ&amp;#5;Ä§&amp;#5;ãš&amp;#20;w§/¿SíI”•„ &amp;#14;8§(ã¯N´¸â”T&amp;#141;h7&amp;#29;…&amp;gt;?¼=&amp;#141;&amp;amp;:Ô¶Éº@=Çó© Èßï1÷¦Ž¼TÌ “íI°z÷¤	&amp;#17;€jY&amp;#23;äS“Ó&amp;#31;ˆ4Ð£&amp;#7;’EJT&amp;#24;0;&amp;#31;_óé@Y•ñ€~´cßó§mç&amp;#3;&amp;#6;œ&amp;#23;&amp;#29;¿&amp;#26;.&amp;#22;c&amp;#21;sž¿•(O§ãONs€E:„	\&amp;#143;g¿#Ú€½y©(¢Ã°Í¾ÿ­&amp;#24;ê&amp;#15;&amp;#127;j}&amp;#20;ÂÚ&amp;#12;&amp;#25;Æ98¤úÓÆÀàQBbh`&amp;#29;zP&amp;#7;^ &amp;lt;€zÐ&amp;#7;&amp;#4;Qpå&amp;#25;J&amp;#23; úS€Çnih¸(÷&amp;#25;Ž:S@&amp;gt;§­KE&amp;#23;&amp;#31;(Ð¼&amp;#28;ž´m&amp;#24;Áõ§Q@$&amp;amp;:ã½-&amp;#20;P0¤õÇzZ(&amp;#1;Æ@ tâ–Š(¢Š(£&amp;#20;P&amp;#1;E&amp;#20;P&amp;#1;E&amp;#20;P&amp;#2;&amp;#14;œPG¹¥¢€&amp;#16;&amp;#1;ŒR0zÓ¨ w&amp;#26;&amp;#7;&amp;#7;§NÔm8ì&amp;#127; u&amp;#20;	‘mãÚ“&amp;#6;¥&amp;#20;›zàÓL›&amp;#17;ãÞ’¤aüñL c#¥4ÃÔJkô4ïÆšãå4Ðšº)H:ÒGO&amp;#144;&amp;#12;¶i©Ðç­l¶1¶£ñSÛu÷#Ö¢#$sRÛ&amp;#129;žÝ+9lTw-Žÿ…7ƒŸPqO&amp;#29;8éH}ˆ÷â²¹ºÐf &amp;#3;¡à`SñþsMÆ:tÍ"®F}(©&amp;#2;ä&amp;#28;ži»@&amp;#31;Zi&amp;#144;¢6“&amp;#20;§¯±¤§ql&amp;#24;ã¶i¸Å;¥'N&amp;#157;ûRCLAžýèç&amp;#7;&amp;#20;g9&amp;#30;ýhö¦˜&amp;#12;ÛÉéI&amp;#143;j“&amp;#20;Üq&amp;#129;øS&amp;#23;(Ä&amp;#7;?Nµ8äTH9&amp;#18;Õ§|&amp;#29;:à`r…J·ëÞº­3áÅÅ¬†îxî&amp;#5;±…þb¿4g&amp;#7;¨ïúW4ñT¡£‘¢¤Ï8Û‚ÙõýA"Œg©&amp;#28;VÐÐ&amp;amp;µ¼ŠÚvY¡¸Ï“:tcéÏCíŒŠÈòÝT³FÁ7&amp;#20; ùñ[&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;... but then a lot longer.&lt;BR /&gt;I imagine this is the actual image data, but now I can't output it as an image. Also, I've read your endpoint&amp;nbsp;download&amp;nbsp;link again (I did before posting) but I can't figure out what this means for my code.&lt;BR /&gt;&lt;BR /&gt;My apologies, I am not very good at&amp;nbsp;coding as you can see &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Knal&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 19:11:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/240199#M13366</guid>
      <dc:creator>knalpiap</dc:creator>
      <dc:date>2017-09-05T19:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/240203#M13367</link>
      <description>&lt;P&gt;Wow!! I've managed to work it out &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;I've read the following post again &lt;A href="https://www.dropboxforum.com/t5/API-support/API-v2-Simple-image-gallery-on-my-website-using-dropbox/td-p/169202" target="_blank"&gt;https://www.dropboxforum.com/t5/API-support/API-v2-Simple-image-gallery-on-my-website-using-dropbox/td-p/169202&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;After this, all I additionally changed is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;echo $result;&lt;/PRE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$data = base64_encode( $result );
echo '&amp;lt;img src="data&amp;amp;colon;image/jpg;charset=utf8;base64,'.$data.' /&amp;gt;';&lt;/PRE&gt;
&lt;P&gt;and now it works!! Thank you so much!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Knal&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 19:49:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/240203#M13367</guid>
      <dc:creator>knalpiap</dc:creator>
      <dc:date>2017-09-05T19:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/333316#M19453</link>
      <description>&lt;P&gt;Hi!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having the same issue here. I tried to read to documentation at the link below but I received a message saying: access denied!&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/archive-board/API-v2-Simple-image-gallery-on-my-website-using-dropbox/td-p/169202" target="_blank" rel="noopener"&gt;https://www.dropboxforum.com/t5/archive-board/API-v2-Simple-image-gallery-on-my-website-using-dropbox/td-p/169202&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you help me out pleeease?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 23:28:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/333316#M19453</guid>
      <dc:creator>lrduques</dc:creator>
      <dc:date>2019-03-11T23:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/333319#M19463</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1021947"&gt;@lrduques&lt;/a&gt;&amp;nbsp;Apologies for the trouble. Please try that forum link again; it should work now.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 23:35:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/333319#M19463</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-03-11T23:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/333325#M19465</link>
      <description>&lt;P&gt;It worked!! Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 00:01:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/333325#M19465</guid>
      <dc:creator>lrduques</dc:creator>
      <dc:date>2019-03-12T00:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/358483#M20432</link>
      <description>&lt;P&gt;Your answer have a little problem,&lt;/P&gt;&lt;PRE&gt;$data = base64_encode( $result );
echo '&amp;lt;img src="data&amp;amp;colon;image/jpg;charset=utf8;base64,'.$data.' /&amp;gt;';&lt;/PRE&gt;&lt;P&gt;after the $data at the end you should ad ( " ) before closing so this should look like this&lt;/P&gt;&lt;PRE&gt;$data = base64_encode( $result );
echo '&amp;lt;img src="data&amp;amp;colon;image/jpg;charset=utf8;base64,'.$data.' " /&amp;gt;';&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Aug 2019 12:42:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/358483#M20432</guid>
      <dc:creator>Pavlitto</dc:creator>
      <dc:date>2019-08-02T12:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: PHP - Show thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/748335#M32870</link>
      <description>&lt;P&gt;It worked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$data = base64_encode( $response );
echo '&amp;lt;img src="data&amp;amp;colon;image/jpg;base64,'.$data.'" /&amp;gt;';&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Jan 2024 22:51:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/PHP-Show-thumbnail/m-p/748335#M32870</guid>
      <dc:creator>Inderjeetdev</dc:creator>
      <dc:date>2024-01-31T22:51:34Z</dc:date>
    </item>
  </channel>
</rss>

