[
https://issues.apache.org/jira/browse/WICKET-6424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16091555#comment-16091555
]
Andrea Del Bene commented on WICKET-6424:
-----------------------------------------
Hi [~newgro],
if I understood you correctly, you are just looking for a way to read the post
request body, which contains the text for the svg. If so, you need something
like this:
{code}
public static String readStringFromRequest(WebRequest request) throws
IOException
{
HttpServletRequest httpRequest =
(HttpServletRequest)request.getContainerRequest();
return IOUtils.toString(httpRequest.getReader());
}
{code}
See here
[https://github.com/wicketstuff/core/blob/master/wicketstuff-rest-utils/src/main/java/org/wicketstuff/rest/utils/http/HttpUtils.java]
> Form data to arriving in resource on post
> -----------------------------------------
>
> Key: WICKET-6424
> URL: https://issues.apache.org/jira/browse/WICKET-6424
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.8.0
> Environment: See attached quickstart
> Reporter: Per Newgro
> Attachments: myproject.zip
>
>
> My usecase is to send a svg to a wicket resource and get a transformed png
> back as file download. I can not use url-parameter to send the svg because
> firewall is blocking that content. So i need to send the svg data by form
> submission via post.
> My problem is, that post parameters can be found in browser request window,
> but will not arrive in resource parameters. This works by using get method,
> but this is not an option for me.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)