Saving image file on a remote computer
I scan an image in a web browsing application and this image must be save in the remote machine. This is the code that I already use:
Dim filestr As String = "C:\WINDOWS\temp\scanned.jpg"
Dim fs As New FileStream(filestr, FileMode.OpenOrCreate, FileAccess.Read)
Dim MyData(fs.Length) As Byte
fs.Read(MyData, 0, fs.Length)
fs.Close()
SqlDataAdapter1.Fill(DatasetWiaSer1, "Document")
Dim drRow As DataRow
drRow = DatasetWiaSer1.Tables("Document").NewRow()
drRow("SegSoc") = Session.Item("SegSoc")
Dim name As String
name = txtName.Text
drRow("Name") = name
drRow("Doc") = MyData
DatasetWiaSer1.Tables("Document").Rows.Add(drRow)
SqlDataAdapter1.Update(DatasetWiaSer1)
With this code the image was save in the web server. Please tell me how could I save the image in the remote computer?