I'm trying to get 3 RGB arrays of an image using ASP.NET C#, i have no idea how to do this. I get the imagen from input type file. There is the code.
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Create([Bind(Include = "inFile")] tblImagen tblImagen, HttpPostedFileBase imagen)
{
if (imagen != null && imagen.ContentLength > 0)
{
byte[] imageData = null;
using (var binaryreader = new BinaryReader(imagen.InputStream))
{
imageData = binaryreader.ReadBytes(imagen.ContentLength);
}
}