Click here to Skip to main content
15,915,869 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to set text property of a ComponentControl Pin
Dave Kreskowiak13-Mar-09 4:45
mveDave Kreskowiak13-Mar-09 4:45 
GeneralRe: How to set text property of a ComponentControl Pin
popalzai13-Mar-09 6:02
popalzai13-Mar-09 6:02 
Questionhow to insert multi image in SQL an display it Pin
ngoctuan160812-Mar-09 23:52
ngoctuan160812-Mar-09 23:52 
AnswerRe: how to insert multi image in SQL an display it Pin
Dave Kreskowiak13-Mar-09 1:17
mveDave Kreskowiak13-Mar-09 1:17 
QuestionGet a string of number ? Pin
dec8212-Mar-09 23:49
dec8212-Mar-09 23:49 
AnswerRe: Get a string of number ? Pin
Anoop Brijmohun13-Mar-09 0:47
Anoop Brijmohun13-Mar-09 0:47 
GeneralRe: Get a string of number ? Pin
Dave Kreskowiak13-Mar-09 1:16
mveDave Kreskowiak13-Mar-09 1:16 
GeneralRe: Get a string of number ? Pin
dec8213-Mar-09 2:59
dec8213-Mar-09 2:59 
AnswerRe: Get a string of number ? Pin
Eddy Vluggen13-Mar-09 0:51
professionalEddy Vluggen13-Mar-09 0:51 
AnswerRe: Get a string of number ? Pin
Jon_Boy13-Mar-09 3:39
Jon_Boy13-Mar-09 3:39 
GeneralRe: Get a string of number ? Pin
dec8213-Mar-09 5:59
dec8213-Mar-09 5:59 
GeneralRe: Get a string of number ? Pin
Luc Pattyn13-Mar-09 6:39
sitebuilderLuc Pattyn13-Mar-09 6:39 
AnswerRe: Get a string of number ? Pin
Fernando Soto13-Mar-09 4:40
Fernando Soto13-Mar-09 4:40 
QuestionDatagridview Print in VB Pin
THOBANI12-Mar-09 22:55
THOBANI12-Mar-09 22:55 
AnswerRe: Datagridview Print in VB Pin
Sebastian Br.12-Mar-09 23:19
Sebastian Br.12-Mar-09 23:19 
QuestionUse Interbase in VB Pin
ivo7512-Mar-09 21:46
ivo7512-Mar-09 21:46 
AnswerRe: Use Interbase in VB Pin
0x3c012-Mar-09 21:50
0x3c012-Mar-09 21:50 
AnswerRe: Use Interbase in VB Pin
Eddy Vluggen12-Mar-09 22:35
professionalEddy Vluggen12-Mar-09 22:35 
GeneralRe: Use Interbase in VB Pin
ivo7512-Mar-09 23:36
ivo7512-Mar-09 23:36 
GeneralRe: Use Interbase in VB Pin
Eddy Vluggen12-Mar-09 23:52
professionalEddy Vluggen12-Mar-09 23:52 
QuestionHow do i deploy MySQL Database to another computer? Pin
swaroop0912-Mar-09 20:14
swaroop0912-Mar-09 20:14 
AnswerRe: How do i deploy MySQL Database to another computer? Pin
Dave Kreskowiak13-Mar-09 1:15
mveDave Kreskowiak13-Mar-09 1:15 
QuestionSearching Sql Table for Image using byte array parameter Pin
thedom212-Mar-09 16:30
thedom212-Mar-09 16:30 
Hi All

Im trying desparately to search a sql table image field passing in a parameter which is a byte array. I am having no luck whatsoever. I get this error when i run my code below :The data types image and image are incompatible in the equal to operator.

<br />
    Public Sub SearchByteArray(ByVal ByteArr() As Byte)<br />
        Dim strSQL As String<br />
        Dim oConn As SqlConnection<br />
        Dim oCmd As SqlCommand<br />
        Dim oBLOBParam As SqlParameter<br />
        Dim str As String = ""<br />
        '   Try<br />
        ' Create and open connection object<br />
        oConn = New SqlConnection("data source=XXX;initial catalog=CustomApps;user id=sa;pwd=xxx;")<br />
        oConn.Open()<br />
        ' Insert statement<br />
        ' Notice that @BLOBValue is a placeholder for the actual data<br />
        strSQL = "SELECT BlobField from MyImageTable where BlobField = (@BLOBValue)"<br />
        ' Create a command object<br />
        oCmd = oConn.CreateCommand()<br />
        ' Set SQL statement<br />
        oCmd.CommandText = strSQL<br />
        ' Create a command parameter<br />
        oBLOBParam = New SqlParameter("@BLOBValue", SqlDbType.Image, ByteArr.Length, ParameterDirection.Input)<br />
        ' Finally, set the actual data<br />
        oBLOBParam.Value = ByteArr<br />
        ' Add this parameter to the command<br />
        oCmd.Parameters.Add(oBLOBParam)<br />
        ' Execute SQL statement<br />
        MessageBox.Show(oCmd.ExecuteNonQuery())<br />
        ' Close the connection<br />
        oConn.Close()<br />
       <br />
    End Sub<br />


Can anyone help or assist please ?
AnswerRe: Searching Sql Table for Image using byte array parameter Pin
Luc Pattyn12-Mar-09 16:47
sitebuilderLuc Pattyn12-Mar-09 16:47 
QuestionRDLC in VB.NET Pin
C#Coudou12-Mar-09 15:59
C#Coudou12-Mar-09 15:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.