lindee
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2010
12:45 PM
roUrlTransfer download progress
is there any way to extract how many bytes have been downloaded by the roUrlTransfer.AsyncGetToFile method?
1 REPLY 1

RokuKevin
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2010
01:21 PM
Re: roUrlTransfer download progress
To know the expected size, when you get the roUrlEvent, you can call GetResponseHeaders() and get the value for the content-length header.
Unfortunately, we don't currently expose a call to get the file stat info... You will need to read the file into an array to find the actual size.
ba=CreateObject("roByteArray")
ba.ReadFile("tmp:/ByteArrayTestFile")
numBytes = ba.Count()
--Kevin
Unfortunately, we don't currently expose a call to get the file stat info... You will need to read the file into an array to find the actual size.
ba=CreateObject("roByteArray")
ba.ReadFile("tmp:/ByteArrayTestFile")
numBytes = ba.Count()
--Kevin