Re: Image data type equivalent in postgresql - Mailing list pgsql-general

From Mike Mascari
Subject Re: Image data type equivalent in postgresql
Date
Msg-id 3F6A18FB.1020305@mascari.com
Whole thread Raw
In response to Image data type equivalent in postgresql  (Josué Maldonado <josue@lamundial.hn>)
List pgsql-general
Josué Maldonado wrote:

> Hello list,
>
> That's the question, what is the equivalent data type of the msSQL image
> data type ?

You can use 'bytea' for binary data. You can use 'text' and base64
encode the image before insertion. You can, of course, create your own
 'image' type using CREATE TYPE.  You could also alias the 'bytea'
type via CREATE DOMAIN.

HTH,

Mike Mascari
mascarm@mascari.com



pgsql-general by date:

Previous
From: Mike Mascari
Date:
Subject: Re: PostgreSQL versus MySQL
Next
From: "scott.marlowe"
Date:
Subject: Re: Scalability (both vertical and horizontal)?