This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes file does not begin with ' pdf-' in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "file does not begin with Watch "file does not begin with New topic

file does not begin with ' pdf-' in java

ersatish kumar

Joined: Nov 17, 2011
Posts: 6
I am using Spring restful webservice and from there I am getting json object.
In Json Object I have byte array which i got after reading a pdf.
That Byte array I am trying to get in jsp page using ajax call.
Using ajax call i am able to retrieve byte array. But this byte array is coming as string which I am converting in action class and try to display pdf.
But error msg is coming as:
file does not begin with ' pdf-' in java

Do you have any idea why pdf is not displaying?
Bill Gorder

Joined: Mar 07, 2010
Posts: 1646

You have not provided any code but it does not sound like a Spring problem. See this link.

There are many other if you google that error.

[How To Ask Questions][Read before you PM me]
I agree. Here's the link:
subject: file does not begin with ' pdf-' in java
Similar Threads
Displaying byte array as image using javascript
Client side printing from Servlet
JasperReports with GWT
JSON with Ajax.
Having some problem to understand how to manage JSON request