I am using VB6.0 SP5.
Question 1:
I am trying to save a picture (.bmp, .jpeg, .gif etc) to an Access
Database.
I have a field called Pic (Ole Object) defined.. I have a form that the user
will select and insert a picture type into a Picture Box.
How can I save it to the Database and show the picture in the Picture
Box.
I tried an example that used the "GetChuck" and it does not compile, and if
I try
to show the picture in an "OLE1" it will not show. The sample saved all
pics as
"LONG BINARY DATA".
How to save pictures so OLE1 control will be able to show them.
Question 2.
Is there any change that some one has sample code for the OLE1
Control???
Would be nicer to user so user could Double Click and show the OPEN DIALOG
Box
and save selection to database.
Have a great new years and be save!!!

Signature
Thanks in advance
Robert
robert11@nas.net
Veign - 31 Dec 2004 15:37 GMT
Load Pictures To/From Databases and Picture Boxes (ADO):
http://www.freevbcode.com/ShowCode.Asp?ID=485
Save/Retrieve Images to/from database:
http://www.freevbcode.com/ShowCode.Asp?ID=5624

Signature
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--
> I am using VB6.0 SP5.
>
[quoted text clipped - 22 lines]
>
> Have a great new years and be save!!!
Robert - 31 Dec 2004 16:06 GMT
I have tried this sample before, and it works for the most part.
Problem is that the "Long Binary" that it saves it as will not show the
picture in an OLE1 Control.
Is there some way to do this???
> Load Pictures To/From Databases and Picture Boxes (ADO):
> http://www.freevbcode.com/ShowCode.Asp?ID=485
[quoted text clipped - 30 lines]
> >
> > Have a great new years and be save!!!