Invalid URL on ISAPI when using Datalink

JQImage (7 January 2015 version) works OK in Intraweb Stand-alone apps. It fails when using ISAPI/SSL.
In Stand-Alone EXE apps, JQImage uses a URL something like this for displaying blob images stored in a database table:
This works fine.
However, if you recompile the same source code into an ISAPI DLL for Apache, JQImage sends image URLs to the browser like so:
This is obviously an invalid URL, and shows the "broken picture" icon instead of the proper image. I am using SSL on the Apache server, but I don't think this has any impact on the URL generation.
If you edit the URL using FireFox/Firebug and manually change the URL to:
It works OK and shows the correct image. In all of my examples "ABCDEF1234567890" is actually some large random hex number.
So, I can only conclude that you are incorrectly prepending the ISAPI DLL name to the URL twice. Is there a property I need to change, or is this a bug?
Here is the DFM snippet for the image component:
In Stand-Alone EXE apps, JQImage uses a URL something like this for displaying blob images stored in a database table:
- Code: Select all
src="/$/temp/ABCDEF1234567890"
This works fine.
However, if you recompile the same source code into an ISAPI DLL for Apache, JQImage sends image URLs to the browser like so:
- Code: Select all
src="/mydll.dll/mydll.dll/$/temp/ABCDEF1234567890"
This is obviously an invalid URL, and shows the "broken picture" icon instead of the proper image. I am using SSL on the Apache server, but I don't think this has any impact on the URL generation.
If you edit the URL using FireFox/Firebug and manually change the URL to:
- Code: Select all
src="/mydll.dll/$/temp/ABCDEF1234567890"
It works OK and shows the correct image. In all of my examples "ABCDEF1234567890" is actually some large random hex number.
So, I can only conclude that you are incorrectly prepending the ISAPI DLL name to the URL twice. Is there a property I need to change, or is this a bug?
Here is the DFM snippet for the image component:
- Code: Select all
object imgUserImage: TIWCGJQImage
Left = 672
Top = 94
Width = 347
Height = 244
Hint = 'Click Add Photo button to upload a picture of this person'
TabOrder = 32
Version = '1.0'
BorderOptions.NumericWidth = 8
BorderOptions.Style = cbsRidge
BorderOptions.Color = clWebCHOCOLATE
ParentShowHint = False
ShowHint = False
DataLink.DataSource = IWUserSession.dsMupuImages
DataLink.FieldName = 'filedata'
Proportional = True
Center = True
end