Wrox Programmer Forums
|
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2006, 01:56 AM
Authorized User
 
Join Date: Aug 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default photograph updation

updating photograph


hi friends

i want to update photograph which is in ms-access table

i tried something like

 Dim imageByte As Byte()
 Dim fs As New FileStream(OpenFileDialog1.FileName, FileMode.Open)
 Dim reader As New BinaryReader(fs)
 imageByte = reader.ReadBytes(Convert.ToInt32(fs.Length))
 Dim cmd As New OleDbCommand("UPDATE Employee SET photograph = " & imageByte, cnAscom)

it gives syntax error saying that
 " Operator '&' is not defined for types 'String' and '1-dimensional array of Byte' "

how can i solve this problem


thanks for ur valuable suggestion






Similar Threads
Thread Thread Starter Forum Replies Last Post
help in updation sanjeev jha Classic ASP Basics 0 November 12th, 2007 04:17 AM
Problem in Updation. rupen Classic ASP Basics 5 June 27th, 2005 07:17 PM
updation prob.......... abhit_kumar JSP Basics 0 December 14th, 2004 08:07 AM
updation prob.......... abhit_kumar MySQL 0 December 14th, 2004 08:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.