Angular File Upload and Download REST API | Spring Boot + Angular | POST & GET File API | Part 2

preview_player
Показать описание
In this video, you'll learn how to save, post and get any file in MySQL using the Spring boot application as the backend and Angular application as the frontend.

Increase the size of the column with this MySQL query: ALTER TABLE files MODIFY file LONGBLOB;

Would you like to buy the Full Stack Spring Boot Angular project?

Enjoy the video!

Thank you.
Рекомендации по теме
Комментарии
Автор

Take my Heart. Finally i have done successfully. I have changed a little in spring boot model class " @Lob
@Column(name = "file", columnDefinition = "LONGBLOB")
private byte[] data;"

hasannasah
Автор

Good job.
but have jut one question, it is no better to save save just link/name file to the database and store it in some directory? this is to avoid the fact after some moment database will be so heavy

luctandoum
Автор

hi this is sai krishna. I have small issue i uploaded images in angular images stored in angular asset folder path stored in mysql how to do any code is there....

saikrishna
Автор

Hi i get 2 errors one in the all-filles ts wish is in response.body and the second one in upload-file ts that is this.selectedFile=null

ayael