pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Premsun Choltanwanich <Premsun@nsasia.co.th>
To: getsreejith@gmail.com
To: pgsql-sql@postgresql.org
To: lawgon@thenilgiris.com
Subject: Re: Image Insert Postgresql DB
Date: Tue, 23 Nov 2004 16:45:21 +0700
Message-ID: <s1a36935.062@jupiter.nsasia.co.th> (raw)

I already try it on last week. 
Unfortunately that I cannot create the lo type using the appropriate
functions available in contrib/lo in the Postgresql source tree because
library file cannot be loaded. (I use PostgreSQL 8.0 Beta1 as Database
backend.)
However, it's look like a solution for this problem if I can create
this lo type.

>>> Kenneth Gonsalves <lawgon@thenilgiris.com> 23/11/2004 4:29:29 pm
>>>
On Tuesday 23 November 2004 01:49 pm, Premsun Choltanwanich wrote:
> I use VB as develop tool and ADO for connect. My code is show below
and
> for vPicMember is stand ADOStream in Binary.
>
> rs.Open "SELECT * FROM t_mbrpic WHERE mbrsysid = " & vSysId, conn,
> adOpenStatic, adLockOptimistic
>     If rs.EOF Then rs.AddNew
>     rs!MbrSysId = vSysId
>     rs!MbrPic = vPicMember.Read
>     rs.Update
> rs.Close

i use python, and have no idea about ado, this might help:
     
http://gborg.postgresql.org/project/psqlodbc/genpage.php?howto-vblo 

kg




view thread (8+ messages)

Message-ID: <s1a36935.062@jupiter.nsasia.co.th>
Permalink:  ../s1a36935.062@jupiter.nsasia.co.th/
Also on:    postgresql.org/message-id/s1a36935.062@jupiter.nsasia.co.th

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: Premsun@nsasia.co.th, getsreejith@gmail.com, lawgon@thenilgiris.com
  Subject: Re: Image Insert Postgresql DB
  In-Reply-To: <s1a36935.062@jupiter.nsasia.co.th>

* 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