Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. client.UploadFile(uriAddress, filePath);
  2.  
  3. @PostMapping("/uploadAudio")
  4. public void uploadAudio(MultipartFile file)
  5. {
  6. SessionAudio audio = new SessionAudio();
  7. try {
  8. audio.setAudio(file.getBytes());
  9. }
  10. catch(Exception e)
  11. {
  12. throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR);
  13. }
  14.  
  15. audios.save(audio);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement