Right now, I have some code that is storing an OpenEXR file:
FrameBuffer frameBuffer; frameBuffer.insert ("G", Slice(FLOAT, (char *)data, sizeof