Page 1 of 1

Cannot create decoder for 1.jpg file in linux docker

Posted: Thu Jan 04, 2024 6:37 am
by jwalit.katira
Hello,

We are getting error from .net core webapi "Cannot create decoder for 1.jpg file" when we run API code in docker linux , Same code is working fine when we run api as normal HTTP

can you check the issue

Thanks
Jwalit Katira

Re: Cannot create decoder for 1.jpg file in linux docker

Posted: Thu Jan 04, 2024 11:37 am
by Alex
Hello Jwalit,

JPEG decoder is internal decoder and it is stored in Vintasoft.Imaging.dll, i.e. JPEG decoder is always available.

Please check that "1.jpg" file is really JPEG file.

If you are loading file from stream, please check that stream position is 0.

Best regards, Alexander