public static byte [ ] asByteTypeArray ( List < Byte > input ) { byte [ ] result = new byte [ input . size ( ) ] ; for ( int i = 0 ; i < result . length ; i ++ ) { result [ i ] = input . get ( i ) ; } return result ; }
As byte type array .