Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,024 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,520 people online right now. Registration is fast and FREE... Join Now!




Store images to MS Access from PictureBox

 
Reply to this topicStart new topic

Store images to MS Access from PictureBox, failed to import image from picturebox to access field

vinodachu
5 Mar, 2008 - 05:14 PM
Post #1

New D.I.C Head
*

Joined: 28 Feb, 2008
Posts: 6

want 2 store my images from picturbox to microsoft acess 2007 i defined a field in access as oleobject
that help to import picture and other data.but i failed to transport my images to that field .I DOUBT I NEED TO
CONVERT THE IMAGE OBJECT TO BINARY BEFORE DATABINDING.!!!!!!!.FOR I AM AN AMTUER I DIDN'T KNOW THE
SYNTAX FOR THAT.I HOPE YOU WILL HELP ME...........FASTER
CODE

   dim u as object
dim d as new openfiledialog
Me.d.Filter = "Images (*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|All files (*.*)|*.*"
        d.ShowDialog()
        d.RestoreDirectory = True
        'da = d.ShowDialog
'p1 is picturebox
       p1.ImageLocation = d.FileName
        y = p1.Image
        t13.Text = d.FileName
        u = p1.Image
'storing the image to datafiled dr(9)
dr(9)=u

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 09:25PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month