I have the following integer array [1,2,3,4,5,6,7,8,9]

I need to send it to Arduino UNO.

I've tried to send it as array of byte but it doesn't work. 

**C# code:**

```
using System.IO.Ports;

private void Form1_Load(object sender, EventArgs e)
{serialPort1.Open();}

byte[] OUT = { 1,2,3,4,5,6,7,8,9 }; 

serialPort1.Write(OUT, 0, 12);

```

**arduino code**

```
void setup() {

  Serial.begin(9600);

  for (byte aPin = start; aPin <= 13 ; aPin++) {
    pinMode(aPin, OUTPUT);}

  for (byte apin = start; apin <= 13 ; apin++) {
    digitalWrite(apin,HIGH);}

}

void loop(){

//Serial communication step
//Serial.write("6564456464646");

if(Serial.available()){

  for(char j=0;j<Serial.available();j++)
  {input[j]=Serial.read();}

```