Click here to Skip to main content
15,896,153 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have used the get method to read excel file and it displayed the data in postman app but i want to store it in the database using web api

What I have tried:

i dont have any idea... can anyone help me....
Posted
Updated 13-Mar-20 20:47pm
v2

1 solution

We can't diagnose problems like this based on no information: it sounds like you are trying to read a client Excel file on your server - because C# code runs on the server, not the client - and you can't do that. You would have to upload the file to the server, process it (I'd suggest using something like NuGet Gallery | ExcelDataReader 3.6.0[^]) and then store the data you read from it into your DB.

But we can;t give you more detailed instructions: Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900