How to use plagin on ASP page

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

Post Reply
MihGer
Posts: 6
Joined: Mon Oct 18, 2010 3:16 pm

How to use plagin on ASP page

Post by MihGer » Mon Oct 18, 2010 3:40 pm

Hi

I've got a problem with ActiveX component on ASP page. When I try to show an .JP2 file I got an error message:
GflAx.GflAx.1 error '80004005'

Unknown format
As I understand jp2 plugin is not functioning :(

ASP code is very simple

Dim oConvert
Set oConvert=Server.CreateObject( "GflAx.GflAx" )
with oConvert
.LoadBitmap( "C:\test.jp2" )
.SaveformatName = "jpeg"
response.contenttype = "image/jpeg"
response.binarywrite .SendBinary
end with

File C:\Program Files\GflSDK\GflAx\Lib\plugins\Xjp2.dll I've had to copy manually 'cose installation program GflAxSetup.exe did not cteate it.

Thank You in advance :-)

User avatar
xnview
Author of XnView
Posts: 31598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: How to use plagin on ASP page

Post by xnview » Tue Oct 19, 2010 1:54 pm

You can use SetPluginsPathname to set pathname of X*.dll plugins
Pierre.

MihGer
Posts: 6
Joined: Mon Oct 18, 2010 3:16 pm

Re: How to use plagin on ASP page

Post by MihGer » Tue Oct 26, 2010 9:24 am

Thank You!

Something have certainly changed. Now AciveX object can see plugin. :-) but during loading I got an error:

Microsoft VBScript runtime error '800a01fb'

An exception occurred: 'LoadBitmap'

/office/newdesign0/img.asp, line 49

What can cause this problem?

P.S. I checked some different .jp2 files but the result was the same. I also tried to load a BLOB object with .jp2 picture from database and received the same exeption :-(
P.P.S. If I try to create a new picture, draw a circle and save it as .jp2
An exception occurred: 'SaveBitmap'
again. As .jpg file saving is ok.

Post Reply