java - The method decodeByteArray(byte[], int, int) in the type BitmapFactory is not applicable for the arguments (byte[][], int, int) -


i put in asynctask got error.

the method decodebytearray(byte[], int, int) in type bitmapfactory not applicable arguments (byte[][], int, int)

private class saveimagetask extends asynctask<byte[], void, void>{      @override     protected void doinbackground(byte[]... params) {         // todo auto-generated method stub         bitmap bitmappicture = bitmapfactory.decodebytearray(params, 0,params.length);          return null;     }       }  } 

i think need:

bitmap bitmappicture = bitmapfactory.decodebytearray(params[0], 0,params[0].length);

params array , therefore need specify index.


Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -