Skip to content

Instantly share code, notes, and snippets.

@cburnette
Created August 4, 2016 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cburnette/177a2f4b7c3bf601fdd9ee8c9d480547 to your computer and use it in GitHub Desktop.
Save cburnette/177a2f4b7c3bf601fdd9ee8c9d480547 to your computer and use it in GitHub Desktop.
public async Task<FileStreamResult> Thumbnail(string id)
{
var thumbBytes = await BoxHelper.UserClient().FilesManager.GetThumbnailAsync(id, minHeight: 256, minWidth: 256, maxHeight: 256, maxWidth: 256);
return new FileStreamResult(thumbBytes, "image/png");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment