Click here to Skip to main content
15,886,919 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionIDispose Interface Pin
Pankaj Garg27-Feb-07 1:51
Pankaj Garg27-Feb-07 1:51 
AnswerRe: IDispose Interface Pin
Marcus J. Smith27-Feb-07 2:41
professionalMarcus J. Smith27-Feb-07 2:41 
Questiondouble link list implementation in vb.net Pin
Pankaj Garg27-Feb-07 1:45
Pankaj Garg27-Feb-07 1:45 
Questiondynamic crystal report [modified] Pin
harsh_c27-Feb-07 1:04
professionalharsh_c27-Feb-07 1:04 
Questioncreate plugins for mmc ? Pin
Agbaria Ahmad26-Feb-07 23:24
Agbaria Ahmad26-Feb-07 23:24 
Questionxml Pin
WhiteGirl2326-Feb-07 22:30
WhiteGirl2326-Feb-07 22:30 
AnswerRe: xml Pin
Christian Graus26-Feb-07 23:26
protectorChristian Graus26-Feb-07 23:26 
QuestionI am retriving the image file from Database .. Pin
somagunasekaran26-Feb-07 22:29
somagunasekaran26-Feb-07 22:29 
I am retriving the image file from Database.. I've applied these coding part....So i got these Error...

"Conversion from string "D:\Documents and Settings\somasu" to type 'Integer' is not valid"

Pls help me

Private Sub cmb_id_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmb_id.SelectedIndexChanged

Try

MsgBox(cmb_id.SelectedItem)
con.Close()
con.Open()

cmd = New OleDbCommand("select * from emp_details_tab where emp_id=" & cmb_id.SelectedItem & "", con)
dr = cmd.ExecuteReader()

While dr.Read()
Dim file As String = ("D:\Documents and Settings\somasundaram\My Documents\My Pictures\Srinath.jpg")
Dim MyData() As Byte
MyData = dr("employ_image")
Dim k As Long
k = UBound(MyData)
'Dim fs As New IO.FileStream("D:\Documents and Settings\somasundaram\My Documents\My Pictures\AjayJadeja.jpg", IO.FileMode.OpenOrCreate, IO.FileAccess.Write)
Dim fs As New IO.FileStream(file, FileMode.OpenOrCreate, FileAccess.Write)

fs.Write(MyData, 0, k)
fs.Close()


txt_name.Text = dr.GetValue(1)
txt_address.Text = dr.GetValue(2)
MaskedTextBox1.Text = dr.GetValue(3)
MaskedTextBox2.Text = dr.GetValue(4)
txt_qualify.Text = dr.GetValue(5)
txt_no_yrs_exp.Text = dr.GetValue(6)
txt_worked_exp.Text = dr.GetValue(7)


(ERROR) Emp_image.Image = dr.GetValue(file)

End While
Catch ex As Exception
MsgBox(ex.Message)
Finally
con.Close()
End Try


somasundaram
QuestionI am retriving the image file from Database .. Pin
somagunasekaran26-Feb-07 22:28
somagunasekaran26-Feb-07 22:28 
AnswerRe: I am retriving the image file from Database .. Pin
Colin Angus Mackay26-Feb-07 23:13
Colin Angus Mackay26-Feb-07 23:13 
GeneralRe: I am retriving the image file from Database .. Pin
somagunasekaran26-Feb-07 23:34
somagunasekaran26-Feb-07 23:34 
GeneralRe: I am retriving the image file from Database .. Pin
Colin Angus Mackay26-Feb-07 23:44
Colin Angus Mackay26-Feb-07 23:44 
QuestionTaking Snapshot of any form of project at run time... Pin
Sasmi26-Feb-07 19:56
Sasmi26-Feb-07 19:56 
AnswerRe: Taking Snapshot of any form of project at run time... Pin
il_masacratore26-Feb-07 21:28
il_masacratore26-Feb-07 21:28 
QuestionDatagridview Numeric Column : Plz Help Pin
priya_p23326-Feb-07 18:43
priya_p23326-Feb-07 18:43 
Questionto connect VB with MATLAB Pin
PoulomiGanguli26-Feb-07 17:26
PoulomiGanguli26-Feb-07 17:26 
QuestionHow To Delete All Files In Folder Pin
lone_wolf35126-Feb-07 17:20
lone_wolf35126-Feb-07 17:20 
AnswerRe: How To Delete All Files In Folder Pin
Dave Kreskowiak27-Feb-07 4:27
mveDave Kreskowiak27-Feb-07 4:27 
QuestionHashing Pin
Radiit26-Feb-07 17:15
Radiit26-Feb-07 17:15 
AnswerRe: Hashing Pin
Colin Angus Mackay26-Feb-07 22:11
Colin Angus Mackay26-Feb-07 22:11 
AnswerRe: Hashing Pin
kubben27-Feb-07 3:21
kubben27-Feb-07 3:21 
Questionprinter option in file menu Pin
veeru1026-Feb-07 17:13
veeru1026-Feb-07 17:13 
QuestionMicrosoft KB-180736 Pin
hhuntman26-Feb-07 16:13
hhuntman26-Feb-07 16:13 
AnswerRe: Microsoft KB-180736 Pin
Dave Kreskowiak27-Feb-07 2:42
mveDave Kreskowiak27-Feb-07 2:42 
QuestionHow to open Excel file? Pin
moomoooomoo26-Feb-07 15:36
moomoooomoo26-Feb-07 15:36 

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.