I need to upload a file (usually ASCII) to DataSet. How can i do this? What data types should I use for my columns?
DataSet
Thanks.
you can use byte [] for type,
Maybe a DataTable might be useful for you
DataTable dt = new DataTable("files"); dt.Columns.Add("name", typeof(string)); dt.Columns.Add("size", typeof(int)); dt.Columns.Add("content", typeof(byte[]));
Not sure if this is what you are looking for, but you can find a sample here:
Fill a DataSet from delimited text files
DataSet - , . , .. .
, , , , . , .
Better type your data and then transfer the raw dust to the DataSet using the extension method. XML children do the same for XML files (which is just like nuts).
Source: https://habr.com/ru/post/1706358/More articles:Windows Service Question - c #Does a Regex match a partial or camel rope? - javaSharePoint branding changes SiteLogoUrl by theme, there is no theme related application - c #Programmatically get values of variables local to work in javascript? - javascriptКонтекстное меню SharePoint в настраиваемом списке отображается в папках, а не только в файлах - c#WebORB for Java or BlazeDS? - java-eeIs there a jQuery text list? - jqueryDoes each authenticated WCF connection require a CAL? - wcfHow to force type in SML (for example, casting) - smlAuto Pointer in VC2008 - copy-constructorAll Articles