The two sentences mean the same since the relationship between the novel and the film is the same in both instances.
1. The film was based on the novel.
Here the film is the subject and the novel is the object.
2. The novel was based on the film.
Here the novel is the subject and the film is the object.