Start a Conversation

Unsolved

This post is more than 5 years old

3806

November 15th, 2010 03:00

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)

417 Posts

November 15th, 2010 04:00

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).

417 Posts

November 15th, 2010 08:00

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 ".".

4 Posts

November 15th, 2010 08:00

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?

No Events found!

Top