At 13:49 +0200 31-07-2002, Eduard Witteveen wrote:
>On Wed, 2002-07-31 at 13:49, Andr�� van Toly wrote:
>> 2002-07-25 10:55:40,577 ERROR module.database.support.PostgreSQL71
>> insertRecord.? - error, could not insert record for builder images
>> 2002-07-25 10:55:40,580 ERROR module.database.support.PostgreSQL71
>> insertRecord.? - java.sql.SQLException: ERROR: oidin: error in
>>
>>"GIF89a\377\000\034\000\263\000\000\377\377\377\000\002Q\273\274\321\212\213\257EF\200\317\317\336!#h\357\357\364\021\023]\337\337\351fg\227vw\242\252\253\30513r\232\233\272UV\213!\371\004\000\000\000\000\000,\000\000\000\000\377\000\034\000@\004\377\020\310I\253\2758\353\315\273\377`(\216di\206E\020\010\222\240\032\007\245\022\223\253\336\3034\334\374\332\336\224\224j\342\230\311T\211\011A\305\002\024\032=C\356D\255Z\257X\015
>MMBase tries to insert a record. This fails. This happens because of the
>wrong database field type.
>
>I read the pervious link. Try to change iod into bytea and create table
>stuff again... hop it works...
Wel OK. Inserting images works...
2002-08-01 16:53:10,513 INFO module.database.support.PostgreSQL71
insert.? - inserted with number #1713 the node
:prefix='',otype=2:'17',owner=1:'default',description=1:'Klein
logootje',number=2:'1713',handle=4:'[B@5ed659',title=1:'NU klein
logo',_number=1:'U-4_-5'
2002-08-01 16:53:11,223 INFO module.database.support.PostgreSQL71
insert.? - inserted with number #1714 the node
:prefix='',otype=2:'28',owner=1:'imagesmodule',filesize=2:'1386',ckey=1:'1713s(100x60)',number=2:'1714',handle=4:'[B@6fb4be',id=2:'1713'
Except they are converted to hex (or something) when insterted into
the database:
number | otype | owner | title | description |
handle | itype
--------+-------+---------+---------------+----------------+-----------------------------------<cut>--------------------------------------+-------
1713 | 17 | default | NU klein logo | Klein logootje |
GIF89a(\000(\000\367\0001\377\377\377\377\377\377\377\377\377\377\377\377\377\347\347\377\347\347\377\347\347\377\336\336\377\336\336\377\336\336\367\367\377\367\367\377\367\367\377\367\367\367\367\367\367\367\367\367\357\357\367\357\357\367\357\357\357\357\357\357\357\357\357\357\347\357\357\347\357\357\347\357\357\245\245\357\245\245\357\245\245\357\234\234\357\234\234\357\224\224\357\224\224\357\224\224\357\214\214\357\214\214\357\214\214\357\204\204\357\204\204\357\204\204\357cc\357cc\357cc\347\347\357\347\347\357\347\347\357\347\234\245\347\234\245\347\234\245\347\234\234\347\234\234\347\234\234\347\214\224\347\214\224\347\214\224\347{{\347{{\347{{\347ss\347ss\347ss\347kk\347kk\347kk\347ZZ\347ZZ\347ZZ\347J
<cut>
x>\332\370cE\303xh\220\035=\262x\243Q\272f\030\306-@vvd<-\241\210\225
\300\224\263\334P\335\334\242\207\265\346\306\213P@\000; |
(1 row)
The same accounts voor the images in icache. So inserting them works
but displaying them again generates errors.
---Cheers, Andr�
--
Andr� van Toly
CMS Developer for ilse media b.v.
[EMAIL PROTECTED]
+31-(0)20-8404559