En:
A solution for UpLoad data(TXT,ScreenShot) to server,Contact with PHP.
How to use it:
- put the 'upload.php' page on your webside or server.
- change the demo url for your url.
- SaveStringToBinary(string str),use this funtion for convert string to a file.
- CaptureScreen(),use this funtion for take a screenShot.
- UploadLogFile(),use this funtion for upload file.
- UploadTexture(),use this funtion for upload screenShot.
- JPGEncoder is a class for compress pic
- enjoy it!
CH:
数据上传解决方案,比如上传log信息,上传屏幕截图,PHP后端交互存储文件
如何使用:
- 上传upload.php页面到服务端。
- 在demo中更改url即可直接体验到上传效果。
- 使用SaveStringToBinary函数来将string字符串转为二进制文件。
- CaptureScreen函数用来截图。
- UploadLogFile用来上传日志。
- UploadTexture用来上传贴图。
- JPGEncoder是一个用于压缩图片的类
- 动手试一下呗~