开发者

Can we get upload progress in ria services when uploading the photo?

开发者 https://www.devze.com 2023-02-16 17:14 出处:网络
I am using RIA services with Silverlight 4.0. I took a picture from the webcam. Now i want to upload that picture to the server. I could use [Invoke] with RIA Services开发者_运维问答 and that would wo

I am using RIA services with Silverlight 4.0. I took a picture from the webcam. Now i want to upload that picture to the server. I could use [Invoke] with RIA Services开发者_运维问答 and that would work fine. However, i want to show the real time progress bar to the user (not just the busy indicator). I want to show the % of the bytes uploaded on the server. How can i do so ?

Thanks in advance :)


Your best option would probably be splitting the file into smaller chunks and then sending these in a loop. If you split a 1 MB image into 100 parts of 10KB, you would have a nice progress bar with 100 steps.

Someone else described how to upload files in chunks with lots of details.

0

精彩评论

暂无评论...
验证码 换一张
取 消