helps required in postgresql and visual basic 6.0

From: "Vishnu Aggarwal" <aggarwal(dot)vishnu(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: helps required in postgresql and visual basic 6.0
Date: 2007-09-03 11:56:32
Message-ID: 33aed4be0709030456g4788f8c3o145e53adc12a2b0e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

hello sir

I am software engineer. i have a problem in postgresql. i am using
postgresql 8.2.4 version and i have save image in table by java program
my table fields as id-integer ,image -bytea

i insert image by java in prepared statement by setbinarystream() its
running perfects.
i can retrieve image by java application also.

but when i used this in visual basic 6.0 its gives problem

Dim Chunk() As Byte
Open imagename For Binary Access Write As #1
ReDim Chunk(1 To RS("FImage").ActualSize)

Chunk() = RS("FImage").GetChunk(RS("FImage").ActualSize)
Put 1, , Chunk()
Close #1

its says when its comes in image field its gives errors

operation is not allowed in this context

helps me out

regards
vishnu aggarwal

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2007-09-03 12:39:38 Re: helps required in postgresql and visual basic 6.0
Previous Message Teodor Sigaev 2007-09-03 10:24:31 Re: integrated tsearch has different results than tsearch2