I'm refering a folder containg a file to upload in DB. and i'm struggling with the right syntax.
I'm uploading a file in upload method, and then saving it's location in DB. At the moment i´m saving the whole folder in DB, instead of the uploaded file. How could i change this property?
C#
model.FileContent = Encoding.ASCII.GetBytes(Server.MapPath(@"~/TargetFiles")); //fileBytes
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Dec 10, 2021, 12:03 AM EST
Check this link
https://www.c-sharpcorner.com/article/upload-files-and-save-into-database-in-binary-format-using-asp-net/
Sachin SinghRank #66 · 26.2K reputationPosted Dec 10, 2021, 1:22 AM EST
Harlem 98143 reputationPosted Dec 10, 2021, 4:13 AM EST