[Date Prev][Date Next] [Chronological] [Thread] [Top]

After get...convert



Once I have byte[] rapresentation of binary data how do I convert it in datahandler?
I need to convert to datahandler because I sent it on web services.
Thanks,

-> > I have a directory where are save file in different formats.
-> > In the beginning I use datahandler, after convert to byte[] and save 
-> > on LDAP.
-> > When I try to get with:
-> > answer = ctx.getAttributes(rni,attr).get("dataBinary");
-> > byte[] resultByte = ((byte[])answer.get());
-> >
-> > I obtain cast exception, why?


~~~~~~~~~~~~~~~
Rudi Verago [vLAiN]
vlain@libero.it
~~~~~~~~~~~~~~~