java - How to store multiple byte arrays -


i working on camera app, take picture , data gathered byte[]...i don't want store images on phones memory, want able store byte array each capture max of 5. i'm wondering possible create array of byte arrays? can add, remove arrays @ specified index location. perhaps array list? or have use db?

i've researched came nothing, thoughts appreciated.

*edit*

so ensure i'm doing correct here code..

public void addimage(byte[] imdata) {         // todo auto-generated method stub          //traverses through imagebytearray         (int = 0; < imagebytearray.length; i++) {             //checks index position empty             if (imagebytearray[i] == null) {                 //if store imdata in array                 imagebytearray[i] = imdata;             }         }     } 

so i'm wondering possible create array of byte arrays?

yes , called two-dimentaional arrays(scroll down accessing elements of multidimensional array.

byte[][] twodbytearray=new byte[5][1024]; 

related post.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -