I have seen this problem around and it seems basic but I haven't found a solution. I need to turn an InputStream into a String. There seems to be a bug in the Source class that fails for large files so I don't want to use that (though it is an elegant approach).
The following doesn't work because reader.readLine returns Unit and not null, as in Java. val reader = new BufferedReader(new InputStreamReader(is)) var responseBody = "" var line = reader.readLine() while(line != null){ responseBody += line line = reader.readLine() } return responseBody What to do? -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=.