Click here to Skip to main content
14,603,097 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100