文件名称:Client
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- sp***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
首先创建FileInputStream的对象,
基于图片文件,创建一个输入流,通过FileInputStream获取图片文件,通过Scoket类创建实例对象获取上传的服务器Ip地址,然后通过Socket类的getOutputStream()方法上传图片,在通过while()循环进行判断,如果上传成功则输出客户端发送完成-First of all, create a FileInputStream object, based on the image file, create a input stream FileInputStream access through the picture files, by category Scoket access From the object to create instances of server Ip address, and then through the Socket class getOutputStream () method upload a picture, in the adoption of while () to determine the cycle, if the upload is successful the client to send the output to complete
基于图片文件,创建一个输入流,通过FileInputStream获取图片文件,通过Scoket类创建实例对象获取上传的服务器Ip地址,然后通过Socket类的getOutputStream()方法上传图片,在通过while()循环进行判断,如果上传成功则输出客户端发送完成-First of all, create a FileInputStream object, based on the image file, create a input stream FileInputStream access through the picture files, by category Scoket access From the object to create instances of server Ip address, and then through the Socket class getOutputStream () method upload a picture, in the adoption of while () to determine the cycle, if the upload is successful the client to send the output to complete
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Client.java