Use GetData() instead of GetBuffer()

Change-Id: I82717c53b0ed1eb14ab6cc6cc037d991cce42984