I'm trying to read and convert JP2 images using the FreeImage accepted answer from this question but getting a 0 byte JOEG file. When I step through I see that the line
FIBITMAP dib = FreeImage.LoadEx(inputImage)
is returning 0 in dib. Is there anything I'm missing.