用Servlet,我可以做以下處理二進制流:如何在Servlet中處理Wicket中的二進制流?
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
InputStream inputStream = req.getInputStream();
byte[] data = IOUtils.toByteArray(inputStream);
// ...
Result result = process(data);
// ...
ServletOutputStream op = resp.getOutputStream();
result.writeTo(resp.getOutputStream());
}
我怎麼能在檢票做到這一點? (我不知道創建頁面擴展好康下課)