WIC CreateDecoderFromStream returning 0x88982F50 post server migration

僤鯓⒐⒋嵵緔 提交于 2019-11-30 23:39:31

That's WINCODEC_ERR_COMPONENTNOTFOUND. It means WIC was not able to find a Decoder class that is registered for the type of file in your stream.

Here is what I would suggest:

On the old server where it works, print out the value of InputDecoder.GetDecoderInfo().GetCLSID(), and maybe also GetAuthor/GetFriendlyName. If it's one of the builtin CLSID's listed here, then the WIC on your new machine is likely broken. Otherwise, you will need to figure out where the decoder you're using on the old machine came from, and install it to the new machine.

Or just look around for a decoder for whatever type of file you have.

just.another.programmer

The problem was that I was running Server 2008 SP1. As described in this question, you need to apply a platform update to Server 2008 (post SP2) before WIC is available. (It is available natively in R2)

Windows of Previous version Windows Vista SP2 /Server 2008 SP2 + KB971644. does not have GUID_ContainerFormatWmp so it fails to detect image format automatically.

we shoud use the following code.

CoCreateInstance(CLSID_WICWmpDecoder,NULL, CLSCTX_INPROC_SERVER,IID_IWICBitmapDecoder,(LPVOID*)&inputDecoder); 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!