title: Passing pdf data through REST
body: <p>How to pass the whole pdf content as response in Restful web services using java platform.
  I tried with converting the responses to String and byte array. First case, got registered expression error. In Second case, getting unexpected results. </p>