pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G. Johnston <david.g.johnston@gmail.com>
To: Naveen Kumar <naveenmcp@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Bytea Example
Date: Thu, 13 Aug 2020 07:19:22 -0700
Message-ID: <CAKFQuwaV2MBNFVO8j1a1Ke5RvC9VNAPeWy3Xh4XbSwOzdGW3sg@mail.gmail.com> (raw)
In-Reply-To: <CAN+uLsFTSHc_ABWfhQFJE0ubcrfAVixzpfHAB1aWzTt9adDAkg@mail.gmail.com>
References: <CAN+uLsFTSHc_ABWfhQFJE0ubcrfAVixzpfHAB1aWzTt9adDAkg@mail.gmail.com>

On Thursday, August 13, 2020, Naveen Kumar <naveenmcp@gmail.com> wrote:

> Can someone please give me an example on byteA data type.
>
> 1. How to import a image/text file into Bytea data type.?
> 2. How to export the same?
>

At a simple level its no different than importing and exporting character
data using a “text/varchar” field or a number using an integer field.  For
bytea the content is just raw bytes instead of characters or numbers.

David J.

view thread (10+ messages)  latest in thread

Message-ID: <CAKFQuwaV2MBNFVO8j1a1Ke5RvC9VNAPeWy3Xh4XbSwOzdGW3sg@mail.gmail.com>
Permalink:  ../CAKFQuwaV2MBNFVO8j1a1Ke5RvC9VNAPeWy3Xh4XbSwOzdGW3sg@mail.gmail.com/
Also on:    postgresql.org/message-id/CAKFQuwaV2MBNFVO8j1a1Ke5RvC9VNAPeWy3Xh4XbSwOzdGW3sg@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: david.g.johnston@gmail.com, naveenmcp@gmail.com
  Subject: Re: Bytea Example
  In-Reply-To: <CAKFQuwaV2MBNFVO8j1a1Ke5RvC9VNAPeWy3Xh4XbSwOzdGW3sg@mail.gmail.com>
  References: <CAN+uLsFTSHc_ABWfhQFJE0ubcrfAVixzpfHAB1aWzTt9adDAkg@mail.gmail.com> <CAKFQuwaV2MBNFVO8j1a1Ke5RvC9VNAPeWy3Xh4XbSwOzdGW3sg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox