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

Re: storing binary data

From: Michael Lam <mlam(at)rim(dot)net>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: storing binary data
Date: 2001-11-13 23:31:39
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
I've seen people converting binary data into base64 or uuencode first before
storing into text files.  Maybe you can do the same and store in a varchar
field if you like too? Hm...

-----Original Message-----
From: Cristovao Dalla Costa [mailto:cbraga(at)bsi(dot)com(dot)br]
Sent: Tuesday, November 13, 2001 6:10 PM
To: pgsql-interfaces(at)postgresql(dot)org
Subject: [INTERFACES] storing binary data


I'm using libpq to interface my program to postgresql, and I need to store
some binary data (around 30-40 bytes per element). I'm not sure of the best
way to do so, since blobs seem awkward. How would you do it? How would you
insert it in a text field?

Thanks all,


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?


pgsql-interfaces by date

Next:From: Alex PilosovDate: 2001-11-14 00:08:49
Subject: Re: storing binary data
Previous:From: Cristóvão Dalla CostaDate: 2001-11-13 23:10:06
Subject: storing binary data

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group