Показаны сообщения с ярлыком File. Показать все сообщения
Показаны сообщения с ярлыком File. Показать все сообщения

воскресенье, 14 января 2018 г.

File: MVC UpLoad, then Write to DB in EntityFramework

https://www.mikesdotnetting.com/article/259/asp-net-mvc-5-with-ef-6-working-with-files

https://stackoverflow.com/questions/28194436/mvc4-image-upload-using-entity-framework-5-code-first

https://social.msdn.microsoft.com/Forums/en-US/1da1014b-a7d9-407d-8dc4-c914d158300d/cimage-store-and-read-from-database?forum=adodotnetentityframework

https://code.msdn.microsoft.com/How-to-save-Image-to-978a7b0b

https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/getting-started-with-ef-using-mvc/advanced-entity-framework-scenarios-for-an-mvc-web-application

http://www.entityframeworktutorial.net/code-first/simple-code-first-example.aspx

https://yogeshdotnet.com/file-upload-in-database-using-entity-framework-code-first-mvc/

https://cpratt.co/file-uploads-in-asp-net-mvc-with-view-models/

https://www.codeproject.com/Articles/658522/Storing-Images-in-SQL-Server-using-EF-and-ASP-NET

File To Bas64String Convert

вторник, 23 сентября 2014 г.

File Encoding

 if (Path.GetExtension(file) != ".log")
 {
 using (var streamReader = new StreamReader(file, Encoding.Default))
                    {
                        //ReportLine.TradeID = GetMaxTradeID();
                        while (!streamReader.EndOfStream)
                        {
                            var s = streamReader.ReadLine();
                            if (s == null)
                                continue;