public abstract File? get_serialized_file ()

Returns a handle to the file on disk to which this publishable's data has been serialized.

You should use this file handle to read into memory the binary data you will send over the network to the remote publishing service when this publishable is uploaded.