Error when attempting to load nonXML document

I am trying to generate a simple program to load a JPG document into Tamino but when I attemp to load the file I get the following error:

8407HASXJE8407 Invalid Node Type

Another forum entry suggests that the file needs to be passed as a DOM node and gives two different ways to achieve this. One using:
var itemSelected=new ActiveXObject(“Microsoft.XMLDOM”);
and the other using

Neither of these seems to be working.

Any suggestions?

It looks to me like you may be using the JScript API?

This is not the best API to use for handling non-XML.

You might want to try the newer Java API or the .NET API.

A non-XML document would not be presented to Tamino as a DOM node.