Hi all, I am trying to use httpcomponents nio server to handle post request file uploader.
I am facing two issues: 1. how to parse the request? I could get the entire data including parameters and file content separated by boundary. Is there a default parser available so that I could do request.getParameter("param1"), request.getFile() etc. Stackoverflow question with sample code: http://stackoverflow.com/q/27994401/201514 2. How to read the data in chunks? I couldnt figure out a way to read the data in chunks. HttpEntity.getContent().read is always returning me null. Whereas, EntityUtils.toByteArray(entity) is giving the complete data. stackoverflow question with sample code: http://stackoverflow.com/q/27994359/201514 looking for any help/suggestions in solving these. Thanks in advance. - Rajani PS: posting it here as the user list is httpclient-users and not about server.