Bank of America beat analysts' expectations for its second-quarter earnings Wednesday but missed revenue forecasts, CNNMoney reported Wednesday. 

The nation's second-largest bank by assets reported net income $2.5 billion, or 19 cents per share, with revenue coming in at $22.2 billion.

Analysts had expected Bank of America to generate 14 cents per share on $22.9 billion of revenue.

The bank got a big boost from lending, which increased for the sixth straight quarter.

Click here to read more from CNN.