How to send byte[] as pdf to browser in java web application?

Viewed 63796

In action method (JSF) i have something like below:

public String getFile() {
  byte[] pdfData = ...
  // how to return byte[] as file to web browser user ?
}

How to send byte[] as pdf to browser ?

3 Answers
Related