How store a binary tree in a file & then read back

I know it can be done using serialize and deserialize by storing the inorder traversal but this approach would require twice the original space to store the data in the nodes.

Can anyone help me to do it with optimizations in space?