Skip to content

Instantly share code, notes, and snippets.

@igorstojanovski
Created March 15, 2020 12:28
Show Gist options
  • Save igorstojanovski/1d319a7b4c5438f58ce220bede6332f8 to your computer and use it in GitHub Desktop.
Save igorstojanovski/1d319a7b4c5438f58ce220bede6332f8 to your computer and use it in GitHub Desktop.
String fileDownloadUri = ServletUriComponentsBuilder.fromCurrentContextPath()
.path("/downloadFile/")
.path(productImage.getPath())
.toUriString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment