How to load file from client to serviec use AngularJS and Spring? -


Image and other data (for example : First name, second name and etc.) Use server ( AngularJS ) << strong> << strong> << / strong>) and file and data on server can save?

I had the same problem, I used Jackson Ozetic with the file [], of this problem Due to that you will have to change the file to base 64. . So I will give you 2 options:

The first easy use is to do a module (you can find 2 or 3 module information here with some examples)

And in the most difficult way, Make a transform image, get the base 64 of the image, get your JS object, send it to server (spring controller), do some tranform between base 64 and java file and work with it if you

I can put some code for the previous one, but I have no code in this computer, but if you want me tell me.

And for the first you have examples, the code in the module is my problem if you want to see if it is the same


Comments