Detect attribute value type?

"Matthew M. DeLoera" <[email protected]> Tue, 01 Sep 2009 11:40:41 -0400
Newsgroups gmane.comp.mozilla.devel.directory
Message-ID <[email protected]>
Is there a way to detect whether an attribute value is binary versus 
string, or must I expect a particular attribute value to be one or the 
other?

It would be handy to be able to dynamically branch between 
ldap_get_values() and ldap_get_values_len().

This isn't an urgent question, but would be helpful.

Thanks!
- Matthew