Writing attribute of array of variable strings is not supported. The
trick will not work.
Writing array of variable length data (strings, floats, ints, etc) is in
our wish-list. We
need more resources to complete the work.
Thanks
--pc
On 3/25/2011 9:33 AM, Konrad Hinsen wrote:
On 25 Mar, 2011, at 15:17 , Peter Cao wrote:
Directly writing attribute of array of strings is not supported. We may add
this feature in future
release. The workaround is to convert it to array of bytes, e.g.
byte[] bvalue = Dataset.stringToByte(attr_value, 5);
attr.setValue(bvalue);
Is there a similar trick for variable-length string data? If I set the string
length in my example to -1, it crashes the JVM.
Konrad.
--
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: research AT khinsen DOT fastmail DOT net
---------------------------------------------------------------------
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org