In this chapter, Joseph interprets the dreams of his fellow inmates.
How cool is this parallelism?
"...within three days shall Pharaoh lift up thine head, and restore thee unto thy place."
"...within three days shall Pharaoh lift up thy head from off thee, and shall hang thee on a tree."
Good news for the chief butler, bad news for the chief baker, and our man Joe has the presence of mind to frame both bad news and good in the same methaphorical terms.
As to the interpretation of dreams as divine portents, does anyone (including even devout Christians and Jews) really find it plausible that the process by which our subconsious mind randomly manifests itself during our sleeping hours is a reliable method for the gods to manifest themselves? Seems to me like there might be more than a little potential for confusing one's own deepest desires for the revealed will of the gods. On the upside, though, fewer prayers will seem to go unanswered.