Middleware to set the request body from a base64 encoded query parameter.