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 ?
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.
精彩评论