Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / December 2004



Tip: Looking for answers? Try searching our database.

Pictures

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert - 31 Dec 2004 14:02 GMT
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!!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.