I have small piece of code which downloads a zip file from github. I have inserted the token in this format https://token:x-oauth-basic@github.xxxx.com/org/repo/archive/branch.zip. The download works but when I do
ZipInputStream zis = ZipInputStream new FileInputStream(new FileInputStream(downloadedfilepath));
ZipEntry entry = null;
while ((entry=zis.getNextEntry()) != null) {
System.out.println("Reached");
}
zis.getNextEntry() returns null though there is lot of content in the zip. This code works for any other zip but does not work for zips downloaded from github using a token.
Any help would really appricate.