Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Insertar imagen tipo bytea


  • From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
  • To: postgres Emanuel CALVO FRANCO <postgres(dot)arg(at)gmail(dot)com>
  • Cc: pgsql-es-ayuda(at)postgresql(dot)org
  • Subject: Re: Insertar imagen tipo bytea
  • Date: Tue, 30 Sep 2008 15:36:26 -0400
  • Message-id: <20080930193626.GD4821@alvh.no-ip.org> <text/plain>

postgres Emanuel CALVO FRANCO escribió:
> Entonces le quedaria usar
> lo_read(PGconn *conn, int fd, char *buf, size_t len);
> y lo_open ?
> 
> por lo que si bien import lo que hace es devolver un oid, las funciones
> que levantan los large objects utilizan estas funciones. o le estoy
> pifiando fiero?

Le estas pifiando, porque las funciones lo_* funcionan con large
objects (crean, abren, cierran, escriben).  La clave de mi mensaje
anterior es que bytea no es "large objects".  No necesitas abrir y
cerrar un bytea, por ejemplo.

-- 
Alvaro Herrera                http://www.amazon.com/gp/registry/3BP7BYG9PUGI8
"Escucha y olvidarás; ve y recordarás; haz y entenderás" (Confucio)



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group