How to store image in database using asp.net core api?
Loading
How to store image in database using asp.net core api?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted Oct 7, 2022, 12:43 PM
Hi Tahir,
I am saving file at location and saving file name in db.
You can refer to my code --> https://github.com/vyelve/.NETCoreWebAPICRUD
OR
Sachin SinghPosted Oct 9, 2022, 8:16 AM
1. use below classes
2. create following extension methods (use for professional projects)
3. use below code in your api method