Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
le h.
9 years agoNew member | Level 1
Cannot get thumbails from GetThumbnailAsync
I don't see any "icon","thumbail"....
using (var dbx = new DropboxClient(Token)) { var list = await dbx.Files.ListFolderAsync(path); foreach(var item in list.Entries) { list1 = await dbx.F...
Greg-DB
Dropbox Community Moderator
9 years ago[Cross-linking for reference: https://stackoverflow.com/questions/35743478/how-to-get-thumbnails-for-image-dropbox-sdk-c-sharp ]
Here's a simple example that works for me to save a thumbnail of a file in Dropbox at "/test.jpg" to a local file on my computer:
public async Task GetThumbnail(string path)
{
using (var response = await client.Files.GetThumbnailAsync(path, null, ThumbnailSize.W64h64.Instance))
{
using (var fileStream = File.Create ("/destination/path/test_thumb.jpg")) {
var thumbStream = await response.GetContentAsStreamAsync();
thumbStream.CopyTo (fileStream);
};
}
}
await GetThumbnail("/test.jpg");
Just be sure to set your remote path and local destination accordingly.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!