Wrox Programmer 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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 14th, 2009, 09:29 AM
Registered User
 
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
Reply With Quote
  #2 (permalink)  
Old June 23rd, 2009, 07:45 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 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
Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 11:43 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.