Problema al guardar ficheros grandes desde Java

From: Alberto Martín <alberto(dot)martin(at)docpath(dot)com>
To: PostGreSQL <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Problema al guardar ficheros grandes desde Java
Date: 2014-04-29 13:56:21
Message-ID: 535FAF85.7030502@docpath.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Buenos tardes,

he seguido la información de:

http://jdbc.postgresql.org/documentation/80/binary-data.html

y he conseguido guardar ficheros en base de datos PostgreSQL desde java.
El problema que tengo es que funciona bien siempre y cuando el fichero
no supere los 2048 caracteres de longitud. En este caso se producen errores.

¿Está limitado SetBinaryStream a 2048?

Gracias. Un saludo.
--
<html>
<head>
<style>
body{font-family: Arial, Tahoma, sans-serif;}
#sign{font-size: 8pt;margin: 20px 0}
.name{font-size: 13pt; font-weight: bold; color:#052ba8}
.department{font-size: 10pt; font-weight: bold; color:#052ba8}
.doc, .path{font-size: 10pt; font-weight: bold;}
.doc{color:#8b8ec1}
.path{color:#052ba8}
.slogan{color:#052ba8}
a{text-decoration:none}
a:hover{text-decoration:underline}
img{margin: 3px 0 -6px 0}
#leaf span{color:#579203; display:none}
#leaf img{display: inline}
#leaf:hover span{display:inline}
div.moz-signature, div.moz-txt-sig{opacity: inherit !important; }
</style>
</head>
<body>

<p id="sign">
--<br />
<span class="name">Alberto Martín</span><br />
<span class="department">Diseño y desarrollo</span><br />
<span class="doc">Doc</span><span class="path">Path</span><br />
<span class="slogan"><em>"a step ahead in document
software"</em></span><br />
C/ Miguel Hernandez 16 (Local)<br/>
13170 Miguelturra - Ciudad Real - Spain<br/>
+34 926 160 287<br/>
<a href="http://www.docpath.com/es/Privacidad-email.htm">Privacy
Policy</a><br/>
<a href="http://www.docpath.com"><img
src="http://www.docpath.com/images/dp-web.gif" alt="DocPath"/></a>
<a href="http://www.linkedin.com/company/docpath"><img
src="http://www.docpath.com/images/dp-linkedin.gif" alt="linkedin"/></a>
<a href="http://www.youtube.com/user/docpathcom"><img
src="http://www.docpath.com/images/dp-youtube.gif" alt="youtube"/></a>
<span id="leaf"><img src="http://www.docpath.com/images/dp-leaf.gif"
alt="leaf"/><span> Please, consider the environment before printing this
email</span></span>
</p>
</body>
</html>

-
Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda(at)postgresql(dot)org)
Para cambiar tu suscripción:
http://www.postgresql.org/mailpref/pgsql-es-ayuda

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Rusel Fichi 2014-04-29 18:41:57 Restaurar backup en formato custom
Previous Message jaime soler 2014-04-29 13:18:24 Re: rutina de detección y recuperación de deadlocks