FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Campos OID en Postgres y Delphi
Saludos, necesito hacer una aplicación en la que se pueda insertar imagenes, la única forma que encontre es utilizando campos de tipo OID pero al enviar las imagenes desde el cliente (Delphi en Windows) a mi servidor (Postgres en Linux) no funciona.
Utilizo la función lo_import pero me parece que solo funciona en la maquina local. Les agradecere cualquier sugerencia, código, ejemplo o los que sea . |
#2
|
|||
|
|||
Campos OID en Postgres y Delphi
Hola otra vez,
Les comento que lei en el Inter que la mejor forma de guardar una imagen o cualquier archivo en Postgres es como texto pero aun no puedo hacerlo. Si alguien sabe como codificar una imagen de forma que pueda almacenarla en un campo de texto o binario se le agradeceria bastante si lo publicara. Gracias |
#3
|
||||
|
||||
Yo de bases de datos se lo justo, normalmente no me metería a responder una pregunta sobre este tema, pero con lo de guardar una imagen como si fuera texto, ahí si que te puedo ayudar.
El algoritmo anterior no es una maravilla, de hecho duplica el tamaño necesario para guardar el archivo. Es un comienzo, aunque yo te recomiendo que busques información sobre la codificación base64 mucho mas eficiente. |
#4
|
|||
|
|||
Gracias por responder a mi pregunta, ya probe el código y me ayudara bastante. Te cuento que ya estube buscando información acerca de Base64 y nada, bueno seguire investigando, bye
|
#5
|
||||
|
||||
Base 64
Cheka este hilo clubdelphi.com/foros/showthread.php?t=48924
tiene la unidad completa y tiene dos ejemplo de como utilizarlo
|
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Delphi con Postgres | FlacoNet | PostgreSQL | 11 | 15-02-2010 16:37:46 |
Problema Con Postgres!!!!!!! | jckstro | PostgreSQL | 2 | 09-10-2007 23:33:05 |
Delphi y Postgres | trex2000 | Conexión con bases de datos | 2 | 19-09-2006 16:23:38 |
Conexion xon Postgres | nuquen | Linux | 6 | 25-06-2003 20:33:08 |
Problema Con Postgres Y Kylix | nuquen | Lazarus, FreePascal, Kylix, etc. | 0 | 16-06-2003 19:56:19 |
|