I’m creating a Spring MVC application. I also have a dataTable in the MySQL database. Inside the database, there is a table, and inside the table consist of several columns. One of the columns has type data “LONGBLOB” (the name of the column is file_data)
link to the picture: https://drive.google.com/open?id=1Z4HeJ_CcqASD5qRTXFNC3BlKnAWkiaSF
The picture is the content of 1 “file_data”. 1. How to convert the file_data which has longblob type to data url?
There are some tutorials/discussions about this topic in internet, but mostly using javascript. I have not get idea how convert it by using spring mvc.