Storing 3D textures

Hi,
I have an OpenCL application that creates a 3d texture, based on a 2d image. How can I save the result 3d image to a file and also load it later on? I couldn’t find any framework that would save the byte data (not even in dds format).

Are there any available solutions?
Thanks!

One workaround could be an interop with GL/DirectX to use their serialization.