有点甜 bin老师 代码这样写可以不呢?
Dim c As new camera
c.capture() '开始照相
If c.image IsNot Nothing Then '照相成功
Dim s As String = r("身份证号") & "正面摄像" & Date.today & ".bmp"
c.Save(ProjectPath & "\Attachments\" & s) '照片复制到Attachments目录
Dim ftp1 As New FtpClient
ftp1.Host="196.128.143.28"
ftp1.Account = "foxuser"
ftp1.Password = "138238110"
If ftp1.Upload("ProjectPath & "\Attachments\" & s","\update\Desert.jpg") = True Then 红色部分怎么改呢?因为不想指定名字 只想指定目录
Messagebox.show("上传完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
Messagebox.show("上传失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If
r("身份证正面图") = s
End If
[此贴子已经被作者于2014-8-7 12:22:54编辑过]