Hi,
I want to store xml documents to Google app engine datastore for that
I tried following code.
first.jsp
<body>
<form action="/second.jsp" method="post" enctype="multipart/
form-data">
<input type="text" name="foo">
<input type="file" name="myFile">
<input type="submit" value="Submit">
</form>
</body>
Second.jsp
<body>
<%!BlobstoreService blobstoreService =
BlobstoreServiceFactory.getBlobstoreService(); %>
<%
byte[] a=byte(request.getAttribute("myFile"));
Map<String, BlobKey> blobs =
blobstoreService.getUploadedBlobs(request);
BlobKey blobKey = blobs.get("myFile");
if (blobKey == null) {
response.sendRedirect("/");
} else {
response.sendRedirect("/third.jsp?blob-key=" +
blobKey.getKeyString());
}%>
</body>
In second.jsp i m getting the below error
Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this
error message and the query that caused it.
Please help me into this,
Thnks 4 ur help in advance
Regards
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.