I have an ArrayList that i want to send through UDP but the send method requires byte[].
ArrayList
byte[]
Can anyone tell me how to convert m
If the other side is also java, you can use ObjectOutputStream. It will serialize the object (you can use a ByteArrayOutputStream to get the bytes written)
ByteArrayOutputStream