Storing 3D textures

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?

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