I need to get last 22 Bytes as end of central directory in self extracting .exe file in java (No command line, No terminal solutions please). I tried to read content of .exe file using bufferInputStream and got successful but when trying to get last 22 bytes using
BufferInputStream.read(byteArray, 8170, 22);
java is raising exception saying it is closed stream.Any help in this regard would be much appreciated. Thanks.