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
Post a Comment