适合将 j2me 图像上传到 PHP 文件的 j2me 数据类型是什么?
我想将 LWUIT 图像从 java j2me 应用程序上传到网络服务器。所以我想到了webservice和php文件。所以我想知道我应该发送什么数据类型到 php 文件才能转换此数据类型以获取图像?我应该如何处理 php 文件中的数据类型才能获取图像?
I want to upload LWUIT images from a java j2me application to a webserver. So I thought about webservice and php files. So I wonder what datatype should I send to the php file in order to transform this datatype to get an image ? And how should I process the datatype in the php file in order to get an image ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我理解正确的话,答案是多部分请求。我还没有使用 JavaME 完成此操作,而且,我还没有使用 php 完成此操作。但是这里有一个教程,用于从 Java ME 发送此类请求。
也许有人可以添加一些关于php的东西,这不是我的强项。
问候。
If I understand you correctly, the answer is Multipart Request. I haven't done this with JavaME and moreover, I haven't done this with php. But here is a tutorial to send that kind of request from Java ME.
Maybe someone can add something about php, which is not my strength.
Regards.
对于图像来说,更好的数据类型是字节数组。
The better data type for image is byte array.