I think that you must provide the type of non XML at storage time. The following works for me:
TaminoNonXml nonX = new TaminoNonXml(TAMINO_DB);
String gifFile = “Smiley.gif”;
String saveName = “GIF1”;
TaminoResult tr = nonX.setNonXML(“/ino:etc/ino:nonXML/” + saveName, gifFile, “image/gif” );
ByteArrayOutputStream bos = new ByteArrayOutputStream();
tr = nonX.getNonXML(“/ino:etc/ino:nonXML/” + saveName, bos);
tr = nonX.getNonXML(“/ino:etc/ino:nonXML/” + saveName, “recovered.gif”);
System.out.println("recovered: "+bos.size());
#webMethods#API-Management#webMethods-Tamino-XML-Server-APIs