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

Reply via email to