Results 1 to 5 of 5

Thread: Help with GetChunk

  1. #1
    Guest

    Question

    Can someone please tell me what the GetChunk command does and how I can use it? Thanks

    Gantic

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  3. #3
    Guest
    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 . This is the exact code he gave me:


    Code:
    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 .

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    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.


  5. #5
    Guest
    Nice story and useful info! thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width