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?
model.FileContent = Encoding.ASCII.GetBytes(Server.MapPath(@"~/TargetFiles")); //fileBytes