I havea problem with uploading Images into Database(MS Sql2000)..
and i want to retrive them back..
Please do favour to me..
What have you tried? What specific problem are you having? Are you have problems saving, retrieving, or both? Show us the code you've written.
Have you done a web search?
Several articles appear to deal with this topic.
Private Sub btnadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click Dim fst As New FileStream(OpenDialog.FileName, FileMode.Open, FileAccess.Read) Dim s As String = cmb1.SelectedIndex Dim br As BinaryReader = New BinaryReader(fst) Dim buffer(fst.Length) As Byte br.Read(buffer, 0, CInt(fst.Length)) fst.Close() InsertImage(buffer, s) End Sub Public Function InsertImage(ByRef buffer, ByVal str) SqlConnection1.Open() Try Dim com As New SqlCommand com.Connection = SqlConnection1 com.CommandText = "insert into photo(image)values(@image)" com.Parameters.Add("@image", SqlDbType.Image).Value = buffer com.ExecuteNonQuery() MsgBox("IMAGE INSERTED SUCCESSFULLY") Catch ex As Exception MsgBox(ex.ToString) End Try SqlConnection1.Close() End Function Private Sub DrawToScale(ByVal bmp As Image) picbox.Image = New Bitmap(bmp) End Sub
THIS WILL ADD TEH SELECTED IMAGE TO THE SQL SERVER DATABASE AND TO SELECT........
Sir I have these codes
and autocomplete.php has ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
I'm working in Excel to extract content of a table from a web page and populate Excel sheet cells with it. I'm trying to extract data from a table that gets loaded to a web page after show results method gets called. I have an error that says "Run-time error ...