Article View: comp.lang.basic.visual.misc
Article #423Re: ImageMDB
From: Joel Paula
Date: Wed, 17 Sep 1997 00:00
Date: Wed, 17 Sep 1997 00:00
31 lines
2434 bytes
2434 bytes
You can use the GetChuck, etc. methods to save any binary file (byte, by byte) to a Memo or OLE field. You can't use access to store the images, otherwise your only option is to use the OLE Container control and the Data Control. When you want to get the binary file from the field, you use GetChunk and save the binary file to a temporary disk file, then use that disk file as you will, e.g.: use LoadPicture with the file. HTH -- _____________________ JOEL PAULA "why he did not crane out to see what lay beneath was perhaps because the window was not made to open or because he could or would not open it." - Samuel Beckett - "stirrings still" Lukas Casar <casar@integia.cz> wrote in article <341E8E93.5F7F@integia.cz>... > Problem : ImageMDB > I want to store pictures in MDB. I want them to be used in a treeview or > listview - I have some structured information stored in MDB (including > icons) and I want to display it in treeview. Everyone is telling me, > that I can display images only in OLE container control, but it doesn't > have a picture property, so how can I get those pictures, when stored in > MDB ??? I'm using VB5.0 Enterprise, Access97 and RDO. > Thanks, Lukas > PS : Please reply to CASAR@INTEGIA.CZ, I don't read news often... >
Technical Details
Message-ID:
<01bcbdcd$1b5f3160$0800a8c0@joel>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<341E8E93.5F7F@integia.cz>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c949,8b39622d5aeda958 X-Google-Attributes: gid10c949,public X-Google-Thread: 104586,8b39622d5aeda958 X-Google-Attributes: gid104586,public X-Google-Thread: 10be7f,8b39622d5aeda958 X-Google-Attributes: gid10be7f,public X-Google-Thread: 110e3b,e036b3bdc7dd105a X-Google-Attributes: gid110e3b,public X-Google-Thread: 105ba9,8b39622d5aeda958 X-Google-Attributes: gid105ba9,public X-Google-Thread: f645d,8b39622d5aeda958 X-Google-Attributes: gidf645d,public X-Google-Thread: 108062,8b39622d5aeda958 X-Google-Attributes: gid108062,public X-Google-Thread: f7a67,8b39622d5aeda958 X-Google-Attributes: gidf7a67,public From: "Joel Paula" <joelpaula@usa.net> Subject: Re: ImageMDB Date: 1997/09/17 Message-ID: <01bcbdcd$1b5f3160$0800a8c0@joel> X-Deja-AN: 273220304 References: <341E8E93.5F7F@integia.cz> Organization: TECNILAB PORTUGAL Newsgroups: comp.lang.basic.visual.misc,comp.lang.basic.misc,comp.lang.basic.visual,cz.comp.lang.basic.visual,microsoft.public.vb.bugs,microsoft.public.vb.database,microsoft.public.vb.database.rdo,microsoft.public.vb.database.dao