用Winsock,UDP协议传输文件,有没有什么办法传输到8K以上
解决方案 »
- 在js中的地址传值问题,请指教!
- 如何拖动picture中的label控件?
- 关于TTS(TextToSpeech)的问题
- 关于调用CommonDialog进行打印的???????????????????
- 软件的数据库是access做的,在没有安装access的系统上不能用?
- 求:给出任意会员ID,计算出其下级人数,及包含的级数?SQL语句及实现?
- 怎样使自己的程序被安装的时候安装上自己制作的字体??
- 求JBIG的算法
- 请问如何在VB中获取系统默认字体?
- bmp用paintpicture打印,背景有虚点网格, 如何去除??
- 把问题问的细点:VB可不可以做一个像设计模式的窗体??
- 如何得到一个label控件的句柄?
拆分传送就是了.那用得着BASE64???钻牛角啊...
On Error Resume Next
Kill App.Path & "\temp.tmp"
On Error GoTo 0
'把解码文件
StatusBar1.Panels(4).Text = "发送文件中 ....."
Base64EncodeFile App.Path & "\realtime.jpg", App.Path & "\temp.tmp"
txtOUTput = ""
tcpServer.SendData "Send Start"
Open App.Path & "\temp.tmp" For Input As #1
Do While Not EOF(1)
Line Input #1, t1
tcpServer.SendData t1 & vbCrLf
Loop
Close #1
tcpServer.SendData "Send Over" StatusBar1.Panels(4).Text = "发送文件结束 ....."
'开始写文件
Print #2, Left(A, InStr(A, "Send Over") - 1)
Close #2
txtOUTput.Tag = ""
'拼装回原来的文件
Base64DecodeFile App.Path & "\remot.tmp", App.Path & "\remot.jpg"
Picture1.Cls
Picture1.Picture = LoadPicture(App.Path & "\remot.jpg")
Picture1.Print " "
Picture1.Print "X-CAM查看时间:" & Now
Picture1.Refresh
tcpClient.SendData "Close"
'tcpClient.Close
End If
If txtOUTput.Tag = "Start" Then
'中途多次发包
Print #2, A
End If
If Left(A, Len("Send Start")) = "Send Start" Then '开始接收
txtOUTput = ""
txtOUTput.Tag = "Start"
Open App.Path & "\remot.tmp" For Output As #2 ' 开始拼装 Print #2, Mid(A, Len("Send Start") + 1)
End If