The second example is what I was referring to. The echo() is only needed when entering through the UI and not when editing the code directly.
I read up on this more and it appears basename() will not be as easy to use as substr()... try:
'FileName' => "".(substr($Recordset1->getColumnVal("imgProfilePhoto"), 0, strrpos($Recordset1->getColumnVal("imgProfilePhoto"), "."))) ."",