The oil and gas industry is usually divided into three major components: upstream, midstream and downstream. The midstream sector involves the transportation (by pipeline, rail, barge, oil tanker or truck), storage, and wholesale marketing of crude or refined petroleum products.