简体   繁体   English

使用HttpConnection的Http Post获取上传文件的进度

[英]Http Post using HttpConnection get Progress of the files uploaded

I am uploading the file using HttpConnection in Java I want to monitor the progress of the uploading to show progress bar 我正在使用Java中的HttpConnection上传文件,我想监视上传进度以显示进度栏

I am unable to find the way to this. 我找不到解决办法。

Please help me.. Or tell me links to some tutorials for achieving this 请帮助我..或告诉我一些实现此目标的教程的链接

Thanks in Advance 提前致谢

Ramandeep S. 拉曼迪普S.

使用分块传输模式,并将javax.swing.ProgressMonitorInoutStream包装在文件输入流中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用http PUT上传的文件在服务器上的大小不正确 - Files uploaded using http PUT are not of exact size on the server Apache Commons HttpConnection:PostMethod-获取底层HttpConnection - Apache Commons HttpConnection : PostMethod - Get Underlying HttpConnection 使用HttpConnection时出错 - Error while using HttpConnection 如何使用Java获取上载到Amazon S3的文件的进度状态 - How to get the progress status of the file uploaded to Amazon S3 using Java 如何使用 Firebase 从上传的文件中获取下载 url - How to get download url from uploaded files using Firebase 获取上载文件的MultipartFile数量 - Get MultipartFile amount of uploaded files Spring 引导 - 在不知道关键参数的情况下通过 POST 请求在 controller 中获取上传的文件? - Spring Boot - get uploaded files in a controller without knowing key parameters with POST request? 在android中无法使用httpconnection连接 - Cannot connect using httpconnection in android java:使用POST将文件上传到HTTP服务器,服务器代码是否发布? - java : upload files to HTTP server using POST, server code issue? 将BlackBerry Httpconnection发布到.Net Web服务无法在设备上运行 - BlackBerry Httpconnection post to a .Net Webservice not working on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM