How do i retrieve file from database as BLOB and download?

Viewed 66

Hi i want to retrieve file from database (stored as blob), and download it. My files are not stored in the server or local storage. I am also using Spring, MyBatis and Oracle database. I am not using JPA or hibernate or any preparedstatement.

I am able to display files as a table according to user id. I want to be able to download the file(s) according to the specific file they click.

example image here

When i click on the download link and send parameter "file_data" to the controller to retrieve BLOB for download. my jsp page

my controller

0 Answers
Related