Generally, a building official is allowed to enter a premises reasonably believed to be in violation and to collect evidence. If you do not allow them on the property, then in most cases they would seek access via court order. However, in most cases the official requests permission to enter the property to inspect for a violation and it is granted by the homeowner. In the later case if permission is granted a homeowner will usually not be allowed to protest at the collection of information/evidence concerning the site visit. Code enforcement officers/building officials commonly take pictures during site visits for the record of what they saw.
I would presume that if the building official was in your house for legal reasons, that is inspecting for compliance with building or zoning codes, or was conducting a "search" and you consented to letting him in your house, he can take photographs as well. If you are charged with some violation, you may be able to suppress the use of such photos as evidence, but my guess is that it's unlikely since you don't have a reasonable expectation of privacy once you let the official in the house. I wouldn't imagine however that he could (or would) use the photos publicly without your permission (i.e., putting them on a website, giving them to some third person).
If there wasn't the unpermitted activity he was looking for, don't worry. If there was, discuss with an attorney, especially if fines or charges are going to result. The photographs are only going to be a small part of the overall matter of whether there was a violation. Hope this helps.
This answer is provided under the Avvo.com “Terms and Conditions of Use” (“ToU”), particularly ¶9 which states that any information provided is not intended as legal advice or to create an attorney-client relationship between you and me or any other attorney. Such information is intended for general informational purposes only and should be used only as a starting point for addressing your legal issues. In particular, my answers and those of others are not a substitute for an in-person or telephone consultation with an attorney licensed to practice in your jurisdiction about your specific legal issue, and you should not rely solely upon Legal Information you obtain from this website or other resources which may be linked to an answer for informational purposes. You understand that questions and answers or other postings to the Site are not confidential and are not subject to attorney-client privilege. The full Avvo ToU are set forth at http://www.avvo.com/support/terms . In addition, while similar legal principles often apply in many states, I am only licensed to practice in the State of New York and Federal Courts. Any general information I provide about non-New York laws should be checked with an attorney licensed to practice in your State. Lastly, New York State Court rules (22 NYCRR Part 1200, Rule 7.1) also require me to inform you that my answers and attorney profile posted on the Avvo.com site may be considered "attorney advertising" and that "prior results do not guarantee a similar outcome".
It sounds as if you voluntarily let the building official in your house. Did you object when he or she pulled a camera out? If you object to such activity it certainly seems to be an invasion of your privacy outside of the official having a court order.
This participating Attorney does not warrant any information provided, nor are we creating an Attorney-Client relationship by providing said information to you on this site. Nothing contained herein is intended to constitute, offer, induce, promise, or contract of any kind. The content provided is presented as a courtesy to be used only for informational purposes and is not represented to be error free. The Law Offices of John N. Kitta makes no representations or warranties of any kind with respect to its answer to inquiries, and such representations and warranties are being expressly disclaimed. Given limited facts, we are attempting to share relevant information concerning this area of the law as a public service.