Convert a 2-dimensional array to bytes, and then back

  • Thread starter Thread starter Cross
  • Start date Start date
C

Cross

I am building a client-server application. When the clients gets the data
from the server, the data is received as a byte array. The server works with
data in 2-dimentional arrays (recordsets received from SQL Server, could be
integers, float, string dates...) stored as the data type objects. So I need
to convert the arrays to bytes on the server, and then back to the orginal
2-dimensional array on the client side. What is the easiest/fastes way to do
this?
 
Cross schreef:
I am building a client-server application. When the clients gets the data
from the server, the data is received as a byte array. The server works with
data in 2-dimentional arrays (recordsets received from SQL Server, could be
integers, float, string dates...) stored as the data type objects. So I need
to convert the arrays to bytes on the server, and then back to the orginal
2-dimensional array on the client side. What is the easiest/fastes way to do
this?

I think you might find something usefull in the
System.Runtime.Serialization namespace.
 
Back
Top