The solution is: My blob oid was very big. I had to cast to (float) the oid parameter of pg_loopen. Now works OK.
Соглашаюсь с условиями обработки персональных данных