Skip to content

Instantly share code, notes, and snippets.

@joshlong
Created March 13, 2013 18:09
Show Gist options
  • Select an option

  • Save joshlong/5154652 to your computer and use it in GitHub Desktop.

Select an option

Save joshlong/5154652 to your computer and use it in GitHub Desktop.
@RequestMapping(value = USER_COLLECTION_ENTRY_PHOTO_URL, method = RequestMethod.POST)
@ResponseBody
public Long uploadBasedOnPathVariable(@PathVariable("userId") Long userId, @RequestParam("file") MultipartFile file) throws Throwable {
// ...
}
@RequestMapping(value = USER_COLLECTION_ENTRY_PHOTO_URL, method = RequestMethod.GET)
public void renderMedia(HttpServletResponse httpServletResponse, OutputStream os, @PathVariable("userId") Long userId) throws Throwable {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment