I have browsed and uploaded a png/jpg file in my MVC web app. I have stored this file as byte[] in my database. Now I want to read and convert the byte[] to original file. How c
May you have trouble with the mentioned solutions on DotNet Core 3.0 or higher so my solution is:
using(var ms = new MemoryStream(yourByteArray)) { using(var fs = new FileStream("savePath", FileMode.Create)) { ms.WriteTo(fs); } }