X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C5496474E4F for ; Sat, 22 Mar 2003 14:14:50 -0500 (EST) Received: from web10501.mail.yahoo.com (web10501.mail.yahoo.com [216.136.130.151]) by postgresql.org (Postfix) with SMTP id 5B22E474E44 for ; Sat, 22 Mar 2003 14:14:50 -0500 (EST) Message-ID: <20030322191450.98192.qmail@web10501.mail.yahoo.com> Received: from [194.230.27.237] by web10501.mail.yahoo.com via HTTP; Sat, 22 Mar 2003 11:14:50 PST Date: Sat, 22 Mar 2003 11:14:50 -0800 (PST) From: Max Subject: blob inserted from linux not readable by MS Access To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, hits=0.7 required=5.0 tests=FROM_ENDS_IN_NUMS version=2.50-cvs X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50-cvs (1.172-2003-02-14-exp) X-Archive-Number: 200303/54 X-Sequence-Number: 2773 Dear all, I have just made a small shell script that will parse incoming e-mail to a specific address and put some selected parts of them into a Postgres table. These e-mails have also binary attachments (pictures) that I have to store together with the other e-mail data. I was succesfully able to perform the above tasks and now my db gets populated by e-mails. The problem that I'm having is that this db is supposed to be viewed using MS Access through an ODBC connection to the linux server (this part is working) and I cannot avoid using Access even if I would ;-) The images I upload on the linux server are not understandable by Access and the opposite, images I upload with Access are not in any reasonable format. It seems that Access translates them in some obscure internal (OLE?) format. Actually I tried detaching on the linux db server a 9894 bytes jpeg I inserted into a record from Windows using Access and it was 551096 bytes big! but still Access could open it and show it correctly. So my problem is how to have Access understands the pictures I've loaded in the db, since I'm not a db expert I do not know how to write an Access application that could understand them (and I actually not like to waste time doing it). Is there something I missed in the setup or that I could do to improve compatibility? Can I maybe define a default viewer for Access to use when I double click on the OLE attachment? I'm confused... The blob fields are declared as type lo. The server is PostgreSQL 7.2.2 on SuSE 8.1 (the version on SuSE's cd) , the client Windows 2000 Professional with MS Access 2000 and PgAdminII v1.4.2 Thanks in advance, Massimo __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com