Trim away null butes from result of arraybufferasbinarystring
getResources should return resource objects with metadata. New constructor for Resource