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

Question

Question

WINCODEC_ERR_UNKNOWNIMAGEFORMAT

SDK
asked on February 15, 2023

Customer get the following error when importing native documents into LF.  They do not get the error when importing electronic files.  This used to work for both native and electronic files.

 

Error Message:

"Lfi_GetFileInfo failed.(File: ""\\clddev8srv16058\Robotics\RecordsToUpload\20230209-1022455560\Fortis_test1.pdf"")(HRESULT: 0x88982F07 : WINCODEC_ERR_UNKNOWNIMAGEFORMAT)"

 

Thanks,

Eric

0 0

Replies

replied on February 15, 2023 Show version history

That error indicates that the application is attempting to do image manipulation on a PDF document. PDF is not an image format, according to most definitions and in particular the Laserfiche system does not consider it to be one. Is this a custom application? Could the application be sending the pdf document through the flow meant for images instead of the edoc path?

2 0
replied on February 15, 2023

Brian,

 

Does this line of code indicate the image path or edoc?  I'm not a developer.  Can they change their method here to fix the problem?

                            myDocumentImporter.ImportImages(zFilename)    

Thanks,

Eric

0 0
replied on February 15, 2023

The argument to the ImportImages function needs to be a path to an image file, such as tiff. If you give it a path to a pdf file, I would expect the error you reported. There is a different function for non-image files, ImportEdoc.

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

Sign in to reply to this post.