It would be helpful to have some dimensions, or at least the pitch. The black one looks like a standard unkeyed rectangular housing, but it could be 2.54mm, 2mm, or 1.27mm. A less-blurry end-on view of the white connector would help as well.
Do you need to plug those to connectors into one another, or do you need to swap one for the other?