I would like in my AngularJS app call .jar for uploading images/files. Angular could send blob data (image information) to that .jar, and for example folder name where image would be stored.
So my java method could have 2 params - of blob type and string type. Now, how can I pass those params to java jar? I would like to avoid servlets for image upload. I think of generate .jar of simple custom upload class in Java as solution.
But, now question raises - how to pass non string params to main method of Java class which accepts String args[]? My method must have params too. So that means, if I got it right - main method should accept params from JavaSrcipt and hand it over to method. Am I right?
How could I achieve that? Maybe example with code?