You can try casting the column as, say VARCHAR or VARCHAR2 (must be supported type on DBMS).... e.g.,
Depending on the engine this essentially gets the DBMS to do the grunt work.
MCM
Code:
Select CAST (pdf_data AS VARCHAR2) AS The_Data From TableName where....
MCM
Comment