Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filling one byte[] with multiple byte[]s

I created an application that stores byte arrays in my SQLiteDatabase. This same application also selects the byte arrays from the database every 'x' seconds.

The dataflow of my application is as follow:

Application - > SQLiteDatabase -> Application

My question is:

How do I fill one byte array with all the incoming byte arrays from the SQLiteDatabase?

For example:

Byte[] Data;

Needs to be filled with the following byte array:

Byte[] IncomingData;

IncomingData is constantly being filled by the SQLiteDatabase.

Data needs to be filled with IncomingData constantly.

Can someone help me out?

like image 643
Max Avatar asked Feb 26 '13 10:02

Max


1 Answers

Just use Concat:

data1.Concat(IncomingData);

You'll need to add the System.Linq namespace reference.

like image 57
mattytommo Avatar answered Oct 02 '22 19:10

mattytommo