Unsolved
This post is more than 5 years old
7 Posts
0
1976
October 21st, 2009 06:00
Read part of a file stored in a Centera
Hello,
I would like to know if a generic application could read part of a file stored into a Centera storage. Is it possible to read only part of a file or Centera can only read a whole file? It exists the FPStream_Read api but it's not clear for me if this means that I can read only part of a file.
This feature could be interesting for virtual bursting (see ASR). If a content file of an object is stored in a large PDF file, for example 500MB, stored in a Centera and used to store content of other thousands of objects, it is important to access only to a single 100kb PDF page instead to move a large file to a local cache and then access it with standard file api using Java or C/C++.
Thanks in advance for sharing your knowledge.
Yuri
mckeown_paul
409 Posts
0
October 21st, 2009 07:00
Yes you can do this. Check out the
FPTag_BlobReadPartial()
method in the SDK documentation. This will allow you to specify an offset and the number of bytes to be returned into your stream