title: Cannot resolve symbol length
body: <p>I want to retrieve a list of images from SQLite.</p>
  
  <p>This is my 'getImage()' method </p>
  
  <pre><code>    public List&lt;byte[]&gt; getImage(int i) {
      List&lt;byte[]&gt; list = new ArrayList&lt;&gt;();
      String selectImage = "SELECT VocabImage FROM Vocab WHERE VocabTopic =" + i;
      Cursor c = database.rawQuery(selectImage, null);
      if(c.moveToFirst())
          do{
              list.add(c.getBlob(c.getColumnIndex("VocabImage")));
          }while(c.moveToNext());
  
      c.close();
      return list;
  }
  </code></pre>
  
  <p>This is my java class where I want to call my getImage() method. But there is an error saying that it cannot resolve symbol 'length' in (data.length) in the BitmapFactory line. Anyone has any idea how to solve this? Thank you.</p>
  
  <pre><code> Intent intent = getIntent();
  
   int topicId = intent.getIntExtra("SelectedTopicId", 1);
  
   databaseAccess.open();
  
   List&lt;byte[]&gt;data = databaseAccess.getImage(topicId);
  
   Bitmap image = BitmapFactory.decodeByteArray(data, 0, data.length);
  
   imageView.setImageBitmap(image);
  </code></pre>