* I am trying to save byte array data in arraylist which worked fine as,

```
            SharedPreferences sPrefs=PreferenceManager.getDefaultSharedPreferences(FirstActivity.this);
            SharedPreferences.Editor sEdit=sPrefs.edit();

            for(int i=0;i<byteArrayList.size();i++)
            {
                sEdit.putString("val"+i,byteArrayList.get(i).toString());
            }
            sEdit.putInt("size",byteArrayList.size());
            sEdit.commit();

```
* I am retrieving byte array data by using,

```
    SharedPreferences sPrefs = PreferenceManager.getDefaultSharedPreferences(ViewImagesActivity.this);

    myAList=new ArrayList<byte[]>();
    int size=sPrefs.getInt("size",0);

    for(int j=0;j<size;j++)
    {
        myAList.add(sPrefs.getString("val"+j,"")); // giving error for type mismatch for byte[] and string

    }

```
* please help me to sort out this issue..
* please tell me if any other way to store and retrieve for this.
* Thank you in advance