I am using a servlet for downloading my octet-stream file from server. Its working fine when the size of the file is above 0 bytes. If the file size is 0 bytes the file is not downloaded and I am getting http 502 error in server.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
I didnt get any exception, but when i click the download link, the browser status bar is keep on loading. In addition I am getting the Http 502 Bat Gateway error.