I probably read this book in the late 1960s in an elementary school library. I believe the story began with the young man on Earth and progressed to him having an adventure in space. His photographic memory was central to his character and probably the story also.
For years I thought the book may have been called something like Space Doctor or Star Surgeon. Books with those names exist but I have not found the one I am looking for. I may be in error about the name.