I'm creating an architecture for a SPL (software production line) and I need to make things as easy as possible for the purpose of industrial productivity. The architecture is RESTful, Web API at the server side, Angular 2 & Material 2 at the client side in a nutshell.
I just have this question
Since I write the front-end and back-end, is it possible that in my forms which have file-upload control, I just get binary data from that file and send it to the server in JSON alongside other properties?
In other words, instead of multipart/form-data, I want to send something like this:
{
"title":"we in the garden",
"tags":[
"family",
"holidy"
],
"file":" is it possible to include file's binary data here? "
}
If yes, what do I miss, If no, why not?