title: Android : AsyncTask byte[] issue
body: <p>I am using asyncTask to send images over sockets from Android to PC.</p>
  
  <p>I am calling it like this</p>
  
  <pre><code>new SendImage().execute(data);
  </code></pre>
  
  <p>where data is of type <code>byte[]</code></p>
  
  <p>and my code is</p>
  
  <pre><code>private class SendImage extends AsyncTask&lt;byte[],Void, Void&gt; {
  
      @Override
       protected Void doInBackground(byte[] ... data) {
  
          try{
  
  
              final DataOutputStream dataOutputStream;
  
              final BufferedOutputStream out = new BufferedOutputStream(RRAWsecurity.socket.getOutputStream());
              int count = data.length;
  
              dataOutputStream = new DataOutputStream(RRAWsecurity.socket.getOutputStream());
              dataOutputStream.writeInt(count);
              dataOutputStream.flush();
  
              out.write(data, 0, count);
  
              out.flush();
  
          }catch(Exception e)
          {
              e.printStackTrace();
          }
  
          return null;
  
   }
  }
  </code></pre>
  
  <p>The problem is with this line</p>
  
  <pre><code>out.write(data, 0, count);
  </code></pre>
  
  <p>The error says</p>
  
  <pre><code>The method write(byte[], int, int) in the type BufferedOutputStream is not applicable for the arguments (byte[][], int, int)
  </code></pre>
  
  <p>I can't figure out why its asking for <code>2D</code> array ?</p>