Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It's 100% free, no registration required.

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 have a Multimedia Component with a multimedia type .pdf. Is it possible to read the content of the PDF uploaded as binary file from the Multimedia Component?

EDIT Suppose we have to search for a word testparameter available in the PDF content. Then to achieve this we need to access to the PDF content, only then we can find out whether testparameter is matching in the PDF content or not.

share|improve this question
Is it possible to be more clear with the question? What do you mean with "read"? Where? – Raúl Escudero Apr 22 '14 at 7:18
@RaúlEscudero i have edited my question, i hope i made myself clear. I need to find out wheather a specific word is present in PDF content uploaded as binary file in multimedia compoenent. – SDLBeginner Apr 22 '14 at 7:42
you haven't answered @RaúlEscudero question. WHAT is the context of your problem? you want to do in TOM.NET or using Core Service? – Saurabh Gangwar Apr 22 '14 at 7:43
@SaurabhGangwar Is it possible using Core Services? – SDLBeginner Apr 22 '14 at 7:45
it is possible using both TOM.NET and Core-Service. which one to be used depends on the context of your problem. – Saurabh Gangwar Apr 22 '14 at 7:47
up vote 8 down vote accepted

CoreService provides client StreamDownloadClient to download files from Content Manager.

You can use following code to get the binary content as a stream, and once you have stream you can read the stream to find the text.

StreamDownloadClient streamDownloadClient = new StreamDownloadClient();

Stream tempStream = streamDownloadClient.DownloadBinaryContent(“TCM:X-Y-Z”);

Update: as suggested by Peter in comments, use proper endPointConfigurationName with StreamDownloadClient.

share|improve this answer
Indeed. Note that this is a different client, which uses a different binding (due to the streaming nature of the functionality). So you need to make sure you have that binding available in your configuration file (or code if you are setting it up programmatically) – Peter Kjaer Apr 22 '14 at 8:37

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.