Q. Which of the following code retrieves the body of the request as binary data?
β
Correct Answer: (D)
DataInputStream data = request.getInputStream()
Explanation: InputStream is an abstract class. getInputStream() retrieves the request in binary data.