
One of the optimizations in Vault 2013 is the use of JPEG as the format for storing thumbnails. Previously, the format used by the CAD file was stored in the database. For example, Inventor uses the metafile format, which is usually much bigger than a JPEG when at thumbnail size. Regardless of what format the file’s thumbnail is, the Vault 2013 Server converts it to JPEG when storing it in the database.
What this means for the Vault developer is that you have to handle 2 possible image formats if you want to render thumbnail data. You need to handle the metafile format for files added in Vault 2012 and earlier and you need to handle the JPEG format for files added in Vault 2013.
So here is the updated code for you to use.
RenderThumbnailToImage.cs
RenderThumbnailToImage.vb
Note: This code is more optimal than the code in one of my older posts. The old code worked by trying one algorithm then trying the second algorithm if the first one failed. The new code detects ahead of time what the image format it.


Subscribe