My requirement is to save images and videos into the database. I can successfully save the image into the database but I can't save the video in the database. Also, the video can be saved in a folder but the requirement is to save the video into the database. I am saving the image like this
Just read the InputStream
as byte[]
:
MemoryStream target = new MemoryStream();
poImgFile.InputStream.CopyTo(target);
byte[] data = target.ToArray();
And then store data
to db.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.