add getDataBuffer method
add addFileLink method
use getDataBuffer