Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Java Byte Array To String

Byte Array is a convenient data structure that has many use cases. One scenario is when serializing some object to a file, and so we need to convert object to Byte Array when we write to file, and convert back from byte array to objects when we read from file. Another scenario is when sending data from one machine to another. Complex data structure is converted to a byte array before sending over the network, and on the other end the byte array is converted back to the original data structure. One of the simplest type of Object that we can convert to and from byte array is a String. This post will show how to convert Java Byte Array To String that can be applied to the use cases mentioned earlier.



This post first appeared on JavaDevNotes, please read the originial post: here

Share the post

Java Byte Array To String

×

Subscribe to Javadevnotes

Get updates delivered right to your inbox!

Thank you for your subscription

×