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

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?
 
L

Louis Somers

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top