SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've implemented a StreamAccessor method for my BCS indexing connector.
My source is an SQL database which has a table that contains records.
Some of the records have links to files. My problem is that I’m not sure what to return in my method when there is no file to read.
If I return null - the results have no content type.
If I return an empty memorystream - the results gets a content type of application-octet stream which isn’t what they really are.

How can I construct my StreamAccessor method so it will know when to read files and when to ignore the record and move on?

share|improve this question
up vote 1 down vote accepted

Send in an empty HTML document as answered on your question here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.