I have table with LONGBLOB column type. When inserting 8192 bytes of binary data (though phpMyAdmin or with own PHP script - doesn't matter) phpMyAdmin shows that there are one 6.7 KiB of binary data (which is wrong), downloading binary data results in file of size 6855 bytes, which is less than 8192 bytes, obviously.
Inserting binary data with size 34152 bytes results in 33738 bytes.
I've tried to fetch data with simple PHP script directly and got all 8192 bytes without any truncation, so, this is bug in phpMyAdmin itself.
Ubuntu 15.10 x64
MariaDB 10.0.19
phpMyAdmin 4.4.9deb1 (Ubuntu package)
PHP 5.6.4-4ubuntu6 (Ubuntu package)
Sample of binary data attached.
Thanks for your report. git bisect tells me that this bug originated with https://github.com/phpmyadmin/phpmyadmin/commit/9b77d746aba7ded13aa68f98ac4b5840f2d438f8
Fix: https://github.com/phpmyadmin/phpmyadmin/commit/66b4be9b746da0c00d73959be8f892a2a5edbeee