Apache Lucene.Net 2.4.0 Class Library API

Document.GetBinaryValue Method 

Returns an array of bytes for the first (or only) field that has the name specified as the method parameter. This method will return

null
if no binary fields with the specified name are available. There may be non-binary fields with the same name.

public byte[] GetBinaryValue(
   string name
);

Parameters

name
the name of the field.

Return Value

a

byte[]
containing the binary field value or
null

See Also

Document Class | Lucene.Net.Documents Namespace