I don't program in vb.net normally, but I had similar experiences with
the activex bridge
As the original poster in this thread.
As a reminder, the original poster said:
private sub xmlScriptAccess_update(byval msg as object) handles
xmlBlaster.XmlScriptAccessSource_Event_update
dim qos as object dim contentStr as string
dim byteContents() as Byte = new Byte(1024) {} ' byte array of
1 try
2 qos = msg.getQos() ' OK
3 len = msg.getContent().length ' OK returns 344 4 byteContents=
msg.getContent() ' EXCEPTION
5 contentStr = msg.getContentStr() ' EXCEPTION
6 xmlBlaster.setUpdateReturn("<qos><state> id='OK' /></qos>")
First msg.getContent() is returning Sbyte(), so that is one issue you
are having.
As for why msg.getContentStr() doesn't work, I also have a situation
where strings just won't be returnd by msg.getContentStr(),
msg.getContentBase64(),
msg.getQos().getClientProperty("myAge").getStringValue(), all of these
things are being typed as _ComObject, not as strings.