RE: [sqlite] Saving bitmap image to SQLite3 record?

2004-10-10 Thread kervin

GetObject() returns a BITMAP struct which contains a 'LPVOID bmBits'
member.  I thought that would do it.

I have never tried it though.

GetDIBits() might also work...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_7gms.asp

-
Kervin


Quoting support <[EMAIL PROTECTED]>:

> The GetObject() call gets basic information about the bitmap (size, etc.)
> but doesn't provide anything else. I'd like to get the bytes contained in
> the HBITMAP handle and possibly bind that to a record field. If anyone has
> done this before, please let me know!
>
> Thanks,
>
> Dave
>
> > Hello,
> >
> > A bit on the offtopic side but would GDI function
> > 'GetObject()' do?
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-
> us/gdi/devcons_912s.asp
>
> Kervin
>
> Quoting support <[EMAIL PROTECTED]>:
>
> > I'd like to store bitmap images into an SQLite database, and I can't
> > seem to figure out how to do it. I'm programming for Windows using
> > Visual C++, and I have the bitmap image stored in a HBITMAP handle in
> > my C program.
> >
> > My question is, how can I get the data from the HBITMAP handle and
> > store it in a SQL record field?
> >
> > I understand how to bind blob data (which I think would apply in this
> > case), however, I don't know what data to bind using the HBITMAP
> > handle.
> >
> > Any advice would be appreciated!
> >
> > Thanks,
> >
> > Dave
> >
> >
>
>
>
>
>





RE: [sqlite] Saving bitmap image to SQLite3 record?

2004-10-10 Thread support
The GetObject() call gets basic information about the bitmap (size, etc.)
but doesn't provide anything else. I'd like to get the bytes contained in
the HBITMAP handle and possibly bind that to a record field. If anyone has
done this before, please let me know!

Thanks,

Dave
 
> Hello,
> 
> A bit on the offtopic side but would GDI function 
> 'GetObject()' do? 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/gdi/devcons_912s.asp

Kervin

Quoting support <[EMAIL PROTECTED]>:

> I'd like to store bitmap images into an SQLite database, and I can't 
> seem to figure out how to do it. I'm programming for Windows using 
> Visual C++, and I have the bitmap image stored in a HBITMAP handle in 
> my C program.
>
> My question is, how can I get the data from the HBITMAP handle and 
> store it in a SQL record field?
>
> I understand how to bind blob data (which I think would apply in this 
> case), however, I don't know what data to bind using the HBITMAP 
> handle.
>
> Any advice would be appreciated!
>
> Thanks,
>
> Dave
>
>






Re: [sqlite] Saving bitmap image to SQLite3 record?

2004-10-10 Thread kervin

Hello,

A bit on the offtopic side but would GDI function 'GetObject()' do?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_912s.asp

Kervin

Quoting support <[EMAIL PROTECTED]>:

> I'd like to store bitmap images into an SQLite database, and I can't seem to
> figure out how to do it. I'm programming for Windows using Visual C++, and I
> have the bitmap image stored in a HBITMAP handle in my C program.
>
> My question is, how can I get the data from the HBITMAP handle and store it
> in a SQL record field?
>
> I understand how to bind blob data (which I think would apply in this case),
> however, I don't know what data to bind using the HBITMAP handle.
>
> Any advice would be appreciated!
>
> Thanks,
>
> Dave
>
>