Can't read a .jp2 file
Posted: Thu Oct 28, 2010 7:43 am
Small VB program:
Result:
Reading from another format is ok, saving to .jp2 format is ok too.
.jp2 file was written by GflAx and can be easily opened by QuickTime, so problem is not in a file I suppose.
Code: Select all
Dim oConvert As New GflAx.GflAx
oConvert.SetPluginsPathname = "C:\Program Files\GflSDKGflAx\Lib\plugins\"
Call oConvert.LoadBitmap("C:\test.jp2")
oConvert.SaveFormatName = "bmp"
Call oConvert.SaveBitmap("C:\test.bmp")
at the LoadBitmap string.An unhandled exception of type 'System.NullReferenceException' occurred in WindowsApplication1.exe
Additional information: Object reference not set to an instance of an object.
Reading from another format is ok, saving to .jp2 format is ok too.
.jp2 file was written by GflAx and can be easily opened by QuickTime, so problem is not in a file I suppose.