AnsweredAssumed Answered

How to use GetThumbnail2?

Question asked by Ufuk Taskin on Apr 10, 2020
Latest reply on Apr 13, 2020 by Ufuk Taskin

Hi everyone, I got some issues to GetThumbnail2 Method uses.

IEdmFile5 file5 = vault.GetFileFromPath(filePath, out IEdmFolder5 folder5);
                var version = file5.CurrentVersion;
                IEdmFile15 file15 = (IEdmFile15)file5;
                var obj = file15.GetThumbnail2(version);

                Image imgPreview = PictureDispC.PictureDispConverter.Convert(obj);
                imgPreview.Save(GetTempPath() + parcaadi + ".bmp", System.Drawing.Imaging.ImageFormat.Bmp);
                imgPreview.Dispose();

line 4 error code:

System.Runtime.InteropServices.COMException
  HResult=0x8004040B
  İleti=HRESULT özel durum döndürdü: 0x8004040B

Anybody have any idea?

Outcomes