harisgx
1 Copper

Get value for "xstream.name" field

When xset fields are iterated over, it is found that for the mandated field,

Field name :xstream.name

Field type :application/octet-stream

How is it possible to get the value of the field name, if type is octet-stream? (there is no get method for byte types)

0 Kudos
3 Replies
gstuartemc
2 Iron

Re: Get value for "xstream.name" field

The xstream.name is the name of the field not the data it contains - it is returned via the field iterator, or specified by the application to directly access the field. If the application does not know the field names it created it will be pretty useless!!

The "Get" methods you refer to retrieve the value of properties. To retrieve xstream data you open the stream (XAM_OpenXStream) and read the bytes (XStream_Read).

0 Kudos
harisgx
1 Copper

Re: Get value for "xstream.name" field

the  getFieldType for the field name xstream.name returns "application/octet-stream"

what is the relevance of having such a field property listed by the iterator and not able to get the value?

0 Kudos
gstuartemc
2 Iron

Re: Get value for "xstream.name" field

It is not a property, it is an xstream. There are two types of fields - properties (which are primitive data types and have corresponding "get" methods) and xstreams (which are byte streams). As an xstream is a field so it should obviously be returned by a field iterator.

You can easily get the value of the field (as I described in my previous post).

Finally, the field would be called .xstream.name by whichever application created the XSet. There is no such "mandated field" - in fact, it is an invalid field name because a "user" cannot create files in a namespace beginning with ".".