Open clstopher opened 2 years ago
I just noticed that the code also does something with javadoc! I was happy enough just to have a bunch of .java files that told me what functions / types were exposed! So maybe my suggestion of just letting the browser download the file isn't enough - Or maybe 2 menu options could be exposed: 1) Download java files 2) Show Javadoc results if JDK is installed.
Describe the bug The "Download SOAP Web Service API..." function doesn't download and unzip the Java documentation correctly. In the output log, I can see the following messages:
I used the link from the log to download the file myself in Chrome and that was successful.
To Reproduce Steps to reproduce the behavior:
var webRef = webreferences2.calculator;
)Expected behavior The zip file would be downloaded properly and optionally unzipped.
Desktop (please complete the following information):
Additional context I did a quick skim of the code to see if it was something I was doing wrong; Here are a few links that seemed relevant:
I suspect the problem is that string encoding is being applied to the downloaded data as it is received and joined, etc.
Some quick alternative thoughts - Maybe instead of downloading and unzipping the file, Prophet could just open a browser window to the generated URL and let a browser download it? Alternatively, I think the fix for the code would be to pass in your own response handler for binary files and write the bytes directly to disk as they are received rather than buffering them to a string array first.