Search Postgresql Archives
plpythonu and bytea
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: pgsql-general@xxxxxxxxxxxxxx
- Subject: plpythonu and bytea
- From: Greg Steffensen <greg.steffensen@xxxxxxxxx>
- Date: Sat, 2 Jul 2005 16:49:23 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=GS6HpUm9TLR1nH01M1C2EOfaNxa22V7zkV8+JTOVjX5d+rxurgBNDU+ak+WAKQ0p0Z5qx5JagEVA4xOKwKDrPpTd/yiKWDZ0IgParwExPeuoAq0VjCd5vBoicyigVG+9uRsR8HPqiK2biyjVHVheEJk+ww8R6ly+vtXWfHY9xUU=
- Reply-to: Greg Steffensen <greg.steffensen@xxxxxxxxx>
- Sender: pgsql-general-owner@xxxxxxxxxxxxxx
Hey, I'm trying to write some plpython procedures that read binary data
from images on the disk and store it in bytea fields. I'm
basically trying to write a plpython procedure that accepts a varchar
and returns a bytea, with these procedure contents:
data = "">
return data
(The actual procedure will have more in it, but that's the tricky
part). But the returned data is always severely truncated.
Is returning a bytea from plpython impossible, or is there some way I
should escape the data string? I've tried using the built in
encode and decode functions, but they don't seem to help. If
worse comes to worse, I can store the base64 encoded version, of
course, but I'd rather not do that. Any ideas?
Greg
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]
[Postgresql Jobs]
[Postgresql Admin]
[Postgresql Performance]
[Linux Clusters]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[PHP Books]
[PHP Databases]
[Postgresql & PHP]
[Yosemite]