Is it necessary to put a marker in between.
I want to pass string array (which is converted to byte array) from client side and I want to convert it back to string array on server side.
From client side I am sending string array which by default get converted into byte array(client is in J2ME).
On server side I receive the data in byte array format.
I need to convert it back into original string array.(Server runs on Tomcat using Servlets doPost method)
Without knowing how the String[] is converted into a byte[] in the first place, it's impossible to know how to convert it back. Was serialization used? Was the result of getBytes() of each element appended into one large byte array?