PDA

Click to See Complete Forum and Search --> : Help with GetChunk


Jan 10th, 2001, 03:06 PM
Can someone please tell me what the GetChunk command does and how I can use it? Thanks

Gantic

Dim
Jan 10th, 2001, 09:37 PM
If i remember corectly...what GetChunk does is attain a file Chunk by Chunk...with the maximum Chuck size specified in the code (.GetChunk, 1024). I could be wrong though.
Hope that helped,
D!m

Jan 10th, 2001, 10:01 PM
It was a long, long time ago...in a thread far, far away when I asked something about the INET Control. What I asked was why it timed out and how I do I get the source using the Inet Control. Then, within the next day, a Jedi came and answered my question. He was a nice fellow, his name...was Chris. Just plain Chris. And he showed me how to get the source using the GetChunk method. He still around, you still see him from time to time...an old Jedi, he is, but very wise :rolleyes:. This is the exact code he gave me:


RichTextBox1.Text = Inet1.OpenURL("http://forums.vb-world.net", icString)
ReturnStr = Inet1.GetChunk(2048, icString)
Do While Len(ReturnStr) <> 0
DoEvents
RichTextBox1.Text = RichTextBox1.Text & ReturnStr
ReturnStr = Inet1.GetChunk(2048, icString)
Loop


And now, it has been passed along a few times, hopefully to help people in need :rolleyes:.

Clunietp
Jan 10th, 2001, 10:04 PM
If you are referring to GetChunk in the context of ADO, this is used for getting and retrieving binary data from a database. You can also use it to get binary data from a file as well.

Jan 14th, 2001, 04:43 AM
Nice story and useful info! thanks!