public int [ ] decodeIntArray ( String input ) throws IOException { int [ ] result = null ; ByteArrayInputStream bis = new ByteArrayInputStream ( Base64 . decodeBase64 ( input ) ) ; DataInputStream dis = new DataInputStream ( bis ) ; int length = dis . readInt ( ) ; result = new int [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { result [ i ] = dis . readInt ( ) ; } return result ; }
Decode the given Base64 encoded value into an integer array .