I have to send a byte array to an api along with the field data as shown in the figure.I have a doubt about using the modules provided by angularjs community because its not stating about how the data is transferred and I have little understanding about it. so I want to post any file uploaded from a button to a byte collection to an api with the form data. here is an image for my api.
Actually the problem I faced is changing the file to byte in angular and again finding a module to upload the byte array. I have seen some of byte uploading techniques but they are quit different compared to what I need.If you have some better ways to look at this please show me some
Dagm,
I do not have enough points to add a comment to your question, so I will start an answer here.
I am using the .NET Web API 2.0 on the server to receive and process the client transmission. Is this an option for you?
I am sure that there are other server options other than Web API, but half of my answer depends on this server-side functionality.
Let me know, and I will try to assist you.
Regards....
I can at least give you some client code that works with angular. I do a lot of client side compaction and compression of data into byte arrays before sending to the server.
Let me know if this would be useful.
Here is some client code.