on 06-11-2021 9:28 PM
Hello Colleagues,
Is there any way to upload the Excel file from frontend and send it to the backend by using Odata service? I was trying to store that Excel file as a blob type into the backend. There are two sheets in the Excel file. Therefore, I created two JSON objects to store each sheet and combined those two JSON Objects into one JSON object which was "json1".
The excel file data was stored into the blob successfully and the size of the blob is 12650. When I console out the "json1" and all the excel data could print it out.
Because the blob is about a list of binary data. ( var blob = new Blob([arraybuffer]) Therefore, I was trying to convert the JSON object into the base64 string on the line 366. And then I converted the base64 string into the arraybuffer as the blob part.
The error message was "Request contains properties that do not exist in entity".
Is this the correct way to upload the Excel file as a blob type into the backend by using Odata service? Or Can any one provide the reference links on how to upload the Excel file into the backend by using OData service?
The backend table:
The oData service
Thank you!
Wanzhen
User | Count |
---|---|
76 | |
10 | |
8 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.