Hi
Sorry - I think I was getting confused with some work I'd already done on a 19.0 version of the plugin, which has a WPWebResourceManager in it (possibly just me experimenting). It adds functionality to get a fully qualified path for things, which is required if you are embedding the app and then using the DownloadURL mechanism.
I need to work on this for a DF 19 version.
For now, try something like this (new code in blue):
Code:
String sHome sHost sPort sPath
Integer iPos
Get DownloadURL of ghoWebResourceManager sFilename to sUrl
Move (ServerVariable(ghoWebServiceDispatcher, "PATH_INFO")) to sHome
Move (ServerVariable(ghoWebServiceDispatcher, "SERVER_NAME")) to sHost
Move (ServerVariable(ghoWebServiceDispatcher, "SERVER_PORT")) to sPort
Move (Pos("WebServiceDispatcher.wso", sHome)) to iPos
Move (Left(sHome, (iPos - 1))) to sHome
Move ("//" + sHost + ":" + sPort + sHome + sUrl) to sPath
Send AddImage sPath
That might work "as is", or you might have to sprinkle some "/" separators in there - set a breakpoint in the debugger on the Send AddImage line and see what sPath looks like if it doesn't immediately work.
Note: this should also work outside of WordPress, so you should be able to test stand-alone first.
Mike