上传 Blob 时传递数据的首选方式
我目前正在开发一个可以接收文件上传的 AppEngine 应用程序。我准备上传数据并将 DataStorage 对象的 id 与 POST 请求一起传递。
如果我将它们作为附加到上传 URL 的查询字符串传递,则 AppEngine 的实时版本会因内部服务器错误而退出。这适用于开发版本。然后我尝试自己读取原始数据,这再次在本地工作,但在实时服务器上不起作用。
有谁知道访问和传递数据的推荐方式?该文档说表单字段仍然可用,但没有描述如何访问它们。
预先感谢您的任何想法。
编辑:我发现了一些看起来像推荐的东西,但也不起作用: http://code.google.com/intl/de -DE/appengine/kb/java.html#fileforms
I am currently working on an AppEngine application that can receive file uploads. I prepare the upload data and pass the id of my DataStorage object along with the POST request.
The live version of the AppEngine quits with an internal server error, if I pass them as query string appended to the upload URL. This works with the development version. I then tried to read the raw data myself, which again works locally, but not on the live server.
Does anyone know the recommended way to access and pass data? The documentation says that the form fields remain avaiable, but does not describe how to access them.
many thank in advance for any ideas.
Edit: I have found something that looks like a recommendation, but does not work either:
http://code.google.com/intl/de-DE/appengine/kb/java.html#fileforms
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将附加参数作为额外表单字段传递。它们的访问方式与您通常访问 servlet 中的表单字段的方式相同。
Pass the additional parameters as extra form fields. They can be accessed in the same manner you would usually access form fields in a servlet.