Здарова всем. SQLite C# как вывести blob ячейку? SQLiteConnection connection = new SQLiteConnection(string.Format("Data Source=C:/Users/79268/source/repos/Auth_Key Parser [KL0ND1K3]/Auth_Key Parser [KL0ND1K3]/bin/Debug/f.session;")); connection.Open(); SQLiteCommand command = new SQLiteCommand("select auth_key from 'sessions';", connection); SQLiteDataReader people = command.ExecuteReader(); while (people.Read()) { object getname = people[0]; Console.WriteLine(getname); } connection.Close(); Console.ReadLine(); C# SQLiteConnection connection = new SQLiteConnection(string.Format("Data Source=C:/Users/79268/source/repos/Auth_Key Parser [KL0ND1K3]/Auth_Key Parser [KL0ND1K3]/bin/Debug/f.session;")); connection.Open(); SQLiteCommand command = new SQLiteCommand("select auth_key from 'sessions';", connection); SQLiteDataReader people = command.ExecuteReader(); while (people.Read()) { object getname = people[0]; Console.WriteLine(getname); } connection.Close(); Console.ReadLine(); Выводится почему-то: Помогите пожалуйста!
А какой результат ты хочешь увидеть? byte[] input = new byte[] { 1, 5, 3, 86, 24 }; // сюда getname StringBuilder sb = new StringBuilder(); for(int i = 0; i < input.Length; i++) { sb.Append(input[i] + ", "); } Console.WriteLine(sb.ToString()); // result: 1, 5, 3, 86, 24, C# byte[] input = new byte[] { 1, 5, 3, 86, 24 }; // сюда getname StringBuilder sb = new StringBuilder(); for(int i = 0; i < input.Length; i++) { sb.Append(input[i] + ", "); } Console.WriteLine(sb.ToString()); // result: 1, 5, 3, 86, 24,
csqaprg, Всё оказалось легче, при получении запроса просто в HEX его переобразовать select hex(auth_key) from 'sessions';