p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 Databases by Thearon Willis; ISBN: 9780764588945

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 14th, 2009, 09:29 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default insert images into database

Hello Mr.Thearon,

First, Thanks for the thorough explanation.

I encounter a problem with inserting image into database.
I define a DataColumn in the dataset with byte data type "BL Component" & image data type in SP "Data Access Component"
I convert the image to array of bytes and pass it to a dataset.
Code:
       'objDataColumn = New DataColumn("Photo", Type.GetType("System.Byte"))
        'objDataTable.Columns.Add(objDataColumn)
The problem is "cannot convert from byte() to byte"

Hope you can help

Ahmed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 23rd, 2009, 07:45 AM
Thearon's Avatar
Wrox Author
Points: 1,228, Level: 13
Points: 1,228, Level: 13 Points: 1,228, Level: 13 Points: 1,228, Level: 13
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 381
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Ahmed,

Go to the Wrox web site and download the code for Visual Basic 2005 Instant Results. I wrote an entire application that does nothing but manages images in a SQL Server database. Perhaps that code can guide you in the right direction.

Let me know if there are any further questions or problems.

Thearon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Images from and Save Images to a Database cyndie VB.NET 2 August 17th, 2008 07:42 AM
How to insert/get images to/from a database in c#? tal C# 2005 2 April 17th, 2007 04:04 PM
How to insert images to MySQL (BLOB) wkm1925 ASP.NET 2.0 Professional 0 November 19th, 2006 06:29 AM
Insert Gif Images onto a Access form? sampow Access 4 April 1st, 2004 10:32 AM
Insert images into rtfText ric Beginning VB 6 1 February 19th, 2004 05:18 PM



All times are GMT -4. The time now is 02:52 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc