convertion
Hi ,
How to convert from object to byte[].
Thanks,
Hi ,
How to convert from object to byte[].
Thanks,
> Hi ,
>
> How to convert from object to byte[].
> Thanks,
What, did you cast a byte[] to an object and now want to cast back or something? Why would you do this?
I'm developping a DNS server. When I got a response I should keep it on cache for next same request.
Now I 'm using a hashtable <www.toto.com, thebytearray[]> but hashtable converts the byte[] into Object. So I want my byte[] back ...
Thanks for any help.
sample code object to byte and byte to object:
http://java.ittoolbox.com/groups/technical-functional/java-l/object-to-byte-and-byte-to-object-189130
> I'm developping a DNS server. When I got a response I
> should keep it on cache for next same request.
> Now I 'm using a hashtable <www.toto.com,
> thebytearray[]> but hashtable converts the byte[]
> into Object. So I want my byte[] back ...
> Thanks for any help.
Refer to your original post. I just gave you an example.