title: Android trying to put image as a ByteArray into sqlite database, getting error on put method
body: <p>I'm trying to enter an image into a database together with some strings, but I get the following error on my put method: </p>
  
  <pre><code>The method put(String, String) in the type ContentValues is not applicable for the arguments (String, Byte[]) 
  </code></pre>
  
  <p>But when I see it in tutorials, it seems to be done exactly like how I do it.</p>
  
  <p>Here's the relevant code:</p>
  
  <pre><code>private static final String DATABASE_CREATE = 
      "CREATE Table " + DATABASE_TABLE_LIST + " ( "
      + LIST_ID + " integer PRIMARY KEY Autoincrement, "
      + LIST_NAME + " text NOT NULL, "
      + LIST_ADDRESS + " text NOT NULL, " 
      + LIST_IMAGE + " BLOB );";
  
  ...
  
  public long createItem(String name, String address, Byte[] image) {
      ContentValues initialValues = new ContentValues();
      initialValues.put(LIST_NAME, name);
      initialValues.put(LIST_ADDRESS, address);
      initialValues.put(LIST_IMAGE, image);
      return mDb.insert(DATABASE_TABLE_LIST, null, initialValues);
  }
  </code></pre>
  
  <p>I guess it might have something to do with putting strings as well as the bytearray, but I wouldn't know how to solve it and can't find it through Googling</p>