Такой вопрос.
Захватываю данные с вебки с помощью VideoCapX.
И по инструкции http://www.fathsoft.com/VideoCapX.pdf пытаюсь загрузить на ftp
В инструкции нашел описание:
UploadFrame
Sends current video frame to FTP server
- Код: Выделить всё
Function UploadFrame (server As String, username As String, password As String, path
As String, filename As String, port As Long, quality As Long) As Boolean
Quality parameter is a JPEG image quality setting (0-100).
Port is usually 21 for FTP service.
See FTPPassiveMode property.
- Код: Выделить всё
Vcx1.UploadFrame(“ftp.foo.com”,”john”,”tiger”,”images”,”mypic.jpg”,21,70)
Проблема в том, что я не знаю как это применить! У меня выдает ошибку!
- Код: Выделить всё
Function UploadFrame(server As String, username As String, password As String, path As String, filename As String, port As Long, quality As Long) As Boolean
End Function
Private Sub Command1_Click()
VideoCapX1.UploadFrame("ftp.***.com","admin","admin","images","mypic.jpg",21,70) -ТУТ ВЫДАЕТ ОШИБКУ!!!
End Sub
Private Sub Form_Load()
VideoCapX1.Connected = True
VideoCapX1.Preview = True
End Sub
Private Sub Form_Unload(Cancel As Integer)
VideoCapX1.Connected = False
End Sub
Помогите разобраться!