• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to get the file data in chunks

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am accessing a file using "InputStream" and getting the whole document data. My requirement is to get the document data in chunk(or in small pieces).

Can you please tell me how to perform this operation of getting whole file contents in collection of small pieces.

thanks in advance,
Dhananjay
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which methods do you use to get at the data? The read(byte[]) and read(byte[],int,int) methods let you specify how many bytes to read.

I'm moving this thread to the I/O and Streams forum, where it is a better fit. Please find it there and continue the discussion.
 
reply
    Bookmark Topic Watch Topic
  • New Topic