I have a question about standard procedure of storing images in sql and process of this procedure. Quit over view of this: users uploading images from app and i need to save them.
My questions are : 1. how do i store them? I was able to find some post where people suggested using Binary and some suggested image. I believe image will no longer be available in later sql. 2. how do i grab physical file from api call. I currently can see my file name and all the details. My question is how do i actually grab physical file and put in binary array. I was only able to fin solutions where people use physical paths to theirs files. 3. how do I retrieve file from sql. I guess this will depend on how i will store it.
public IHttpActionResult UploadBridgeImage()
{
var httpRequest = HttpContext.Current.Request;
if (httpRequest.Files.Count > 1)
{
}
try
{
return Ok();
}
catch (Exception)
{
return InternalServerError();
}
}
Thank you for your help. Any guidance are appreciated or even a helpful link where i can learn it from.