Read a BLOB field

Solved
ensixte -  
sawsanaa Posted messages 15 Status Member -
Hi,
I have a blob field in my database and I can’t read it with PHPMyAdmin!!
How to read this field and display its value??
Thanks for your help.

5 answers

  1. geolocalise Posted messages 3 Status Member 9
     
    Hello,

    To read a Blob or rather to try to read a Blob in PHPMyAdmin you need to modify the config.
    You must therefore edit the configuration file "config.inc.php" and modify the line:

    - $cfgShowBlob = TRUE; // display blob field contents (for older versions)

    - $cfg['ShowBlob']= TRUE; // display blob field contents / (latest versions)

    If the variable does not exist, simply create it and it should work.

    Since the article is well referenced, this should be useful.
    2
    1. bernie_liege
       
      A big thank you. For information, the phpMyAdmin config file for Mandriva (2008) is located in /etc/phpmyadmin, and in /var/www/phpmyadmin
      0
    2. sawsanaa Posted messages 15 Status Member
       
      Hello
      please I’m asking where the file "config.inc.php" is located
      0
  2. moderno31 Posted messages 900 Status Member 92
     
    Hello,
    Why can't you read it? It's a database field like the others, you just need to query it.
    Can you explain in detail, I don't understand your problem
    0
  3. le père
     
    Hello

    It doesn’t shock me that phpMyAdmin doesn’t display a blob field. It doesn’t know how to display it, since it can be anything.
    But you, you know (we hope...) what’s in your blob, you can make a script that displays it correctly.
    0
    1. bernie_liege
       
      View below....
      0
  4. ensixte
     
    Thank you for your responses
    yes !! It’s text! , is it obvious to read its content ? !!
    is it possible to read the content via PHPMyAdmin ?!! or how to read it
    Thank you ...
    0
  5. le père
     
    If it's still text, it's absurd to put it in a blob field; a TEXT or VARCHAR field should have been used!
    phpMyAdmin will never display it as text to my knowledge, but with a PHP script you can still read it into a variable and display it with a simple echo.
    0
    1. bernie_liege
       
      Go tell that to the Wikipedia designers, hey, potato!
      0
    2. jillian
       
      No, the father is right!
      You can view your BLOB file in your browser, as long as it supports the format (txt, jpg, jpeg, gif, png, pdf...).
      0