Загрузка...

SQLite C# how to display blob cell?

Thread in C# created by RUB1K Aug 23, 2022. 192 views

  1. RUB1K
    RUB1K Topic starter Aug 23, 2022 Магазин БАЗ https://lolz.live/threads/8728979/ 2609 Apr 25, 2021
    Здарова всем.
    SQLite C# как вывести blob ячейку?
    [IMG]

    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();
    Выводится почему-то:
    [IMG]


    Помогите пожалуйста!
     
  2. csqaprg
    csqaprg Aug 23, 2022 Миксы Скорость - zelenka.guru/threads/3016912 274 Mar 26, 2022
    А какой результат ты хочешь увидеть?
    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,
     
    1. RUB1K Topic starter
      csqaprg, Всё оказалось легче, при получении запроса просто в HEX его переобразовать select hex(auth_key) from 'sessions';
Top
Loading...