Hi Daniel,

On May 4, 2011, at 1:02 PM, [email protected] wrote:

> Hi Quincey, 
> 
> Thanks for your answer. 
> I noticed that if I fill a dataset into the file, than the 
> H5Fget_filesize function returns the correct size. 
> For the motivation to use the H5Fget_vfd_handle, I can explain: 
> I try to somehow serialize a HDF5 file in order to manage multiple 
> access of relatively small sized files using a relational database, 
> inserting HDF5 file pieces as binaries (BLOB, byta, etc..). This would 
> be useful for getting a data access taking advantage of concurrent 
> access on a relational database (for small to medium file sizes), and 
> keeping the flexibility of HDF5 format to manipulate data. To simplify, 
> I would need a function of the type H5Fencode and H5Fdecode ! 
> You seem to have some idea using the CORE VFD. I am curious to 
> understand more about....

        Yes, it sounds like you want to use the core VFD.  Here's the link to 
the reference manual:

http://www.hdfgroup.org/HDF5/doc/RM/RM_H5P.html#Property-SetFaplCore

        If you use the core VFD, it'll create a file in memory and then you can 
call H5Fflush to make certain the file's memory image is consistent, then you 
can store or transmit the data.  There's no way to "open" a memory image of an 
HDF5 file yet, but we're working on it and expect to have it done within a 
month (to be included in the 1.8.8 release).

        Quincey


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to