macy,
Question a):
Tamino stores binary data as binaries.
Your example:
<tsd:doctype name = “CarImage”>
tsd:nonXML</tsd:nonXML>
</tsd:doctype>
the data stored in this doctype will be in its binary form, not encoded or anything. Untouched. Compare it to a BLOB. Stored like a BLOB, treated as a BLOB.
You can of course, as you mentioned, do some base64 encoding. What you get is binary data encoded like character data, like strings. Now this data is not binary in the sense of XML, to Tamino and in a XML sense this data is now plain XML=string data. Any encoding has to be done outside of Tamino or using a server extension.
Question b):
No mix between binary data and XML Data in one doctype is possible. It is an either-or decision. You can use the base64 encoding mechanism to do the trick, but what you do is converting binary data to textual data prior to storing → you do not store the binary data as it was before.
If it is binary, it is not XML. Methods like linking (URL) or encoding change the binary part to something textual which then is XML again.
regards,
Timm
#webMethods#API-Management#Tamino