It's best to send the file piece by piece, but I'm assuming since it's a webcam image (and also converted to JPEG) then you should be able to send the whole thing at once since it's probably real small.

Here's the most basic code I can think of to send the file:

vb Code:
  1. 'Use this like:
  2. 'SendPicture Winsock1, "C:\path\to\camera\image.jpeg"
  3. Private Sub SendPicture(SocketObj As Object, FilePath As String)
  4.     Dim intFF As Integer, bytData() As Byte
  5.    
  6.     'Get file handle to use.
  7.     intFF = FreeFile
  8.    
  9.     'Open the file in binary read mode.
  10.     Open FilePath For Binary Access Read As #intFF
  11.         'Dump the file's data into bytData().
  12.         Get #intFF, 1, bytData()
  13.     Close #intFF 'Close the file.
  14.    
  15.     'Send the data in one go.
  16.     If SocketObj.State = sckConnected Then
  17.         SocketObj.SendData bytData()
  18.     End If
  19.    
  20.     'Clean up.
  21.     Erase bytData()
  22. End Sub

I'd only use it as an example though. It's best to send something before the file data and after it so the receiving end knows where it starts and where it ends, ie:

"START" [File data here] "END"