在我的jsp中:
<form name="frmTest" action="test" method="post">
<input type="submit" value="sub" name="sub" />
<img id="cImg" name="cImg" src="${param.src}">
</form>
在我的 servlet 中:
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException{
String imgUrl = req.getParameter("cImg");
我想在画布中检索我的图像的src数据。它将采用 base 64 数据 URI 格式。以上将给我空值。我应该如何去做,任何帮助将不胜感激。