I am firing a http request to a server and the server returns a file.
File obtained from server is a csv file (text file). I intend to write the content of file to a String or a StringBuffer. How can I do it?
response = getResponse(url);
StrigBuilder sb = new StringBuilder();
//TODO : write content of response to sb
I think I should get the input stream of response and go ahead. But how?