You are viewing limited content. For full access, please sign in.

Question

Question

Thumbnail API RepositoryAccess

asked on August 20, 2017 Show version history

Hello,

If I use the Thumbnail class to retrieve the thumbnail of document into stream, can I display it? What format is it in?

Also if a thumbnail doesn't exist, will an attempt to read it, trigger it's creation?

Also, is this class available in the Java libraries?

-Ben

0 0

Answer

SELECTED ANSWER
replied on August 21, 2017

https://www.dropbox.com/s/1kk31xadktsc48w/Archive.zip?dl=0

Hey Ben, the dropbox link should help.

It's effectively a tiff wrapped jpeg 

0 0

Replies

replied on August 20, 2017

Hi Ben,

If you want to use the thumbnail, I think you'd better to use DocumentExporter.ExportThumbnail or DocumentExporter.ExportThumbnails in DocumentServices. The above methods export the thumbnails in image format, usually TIFF, you can display it directly. The data of Thumbnail class in RepositoryAccess is raw data, some kind of conversion is required to display it. The Thumbnail class is available in the Java libraries, while DocumentExporter not.

0 0
replied on August 20, 2017

Thanks for your reply. I might have to do this in Java. When you say raw data, is it one of these types? If not, what type is it? 

https://en.m.wikipedia.org/wiki/Raw_image_format

Regards 

Ben 

0 0
SELECTED ANSWER
replied on August 21, 2017

https://www.dropbox.com/s/1kk31xadktsc48w/Archive.zip?dl=0

Hey Ben, the dropbox link should help.

It's effectively a tiff wrapped jpeg 

0 0
replied on August 21, 2017

Hi Ben, the byte array returned by Thumbnail.GetData is in the format of TIF.

0 0
replied on August 21, 2017

Thanks for your help Chris and Hauzhen. Much appreciated!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.