Get content from buffer