Hi,
thank you for response to me.
i use extjs upload files to cxf service, the Content-Type is:
multipart/form-data; boundary=----------ei4KM7KM7ae0cH2gL6GI3Ij5ae0Ij5,
and then AttachmentDeserializer.readTillFirstBoundary return false;
if (!readTillFirstBoundary(stream, boundary)) {
throw new IOException("Couldn't find MIME boundary: " +
boundaryString);
}
here is the console debug:
ID: 3
Address: /service/upload
Encoding: UTF-8
Http-Method: POST
Content-Type: multipart/form-data;
boundary=----------ei4KM7KM7ae0cH2gL6GI3Ij5ae0Ij5
Headers: {cookie=[__activedNodeId=120;
JSESSIONID=D5C434726A95290AD1896ACFAE2455B3; saveUserName=true;
userCode=admin], cache-control=[no-cache],
content-type=[multipart/form-data;
boundary=----------ei4KM7KM7ae0cH2gL6GI3Ij5ae0Ij5], connection=[Keep-Alive],
host=[localhost], Content-Length=[2076647], user-agent=[Shockwave Flash],
Content-Type=[multipart/form-data;
boundary=----------ei4KM7KM7ae0cH2gL6GI3Ij5ae0Ij5], Accept=[text/*]}
--------------------------------------
2011-04-01 16:07:17,204 INFO
[org.apache.cxf.interceptor.LoggingInInterceptor] - Inbound Message
----------------------------
ID: 3
Address: /service/upload
Encoding: UTF-8
Http-Method: POST
Content-Type: multipart/form-data;
boundary=----------ei4KM7KM7ae0cH2gL6GI3Ij5ae0Ij5
Headers: {cookie=[__activedNodeId=120;
JSESSIONID=D5C434726A95290AD1896ACFAE2455B3; saveUserName=true;
userCode=admin], cache-control=[no-cache],
content-type=[multipart/form-data;
boundary=----------ei4KM7KM7ae0cH2gL6GI3Ij5ae0Ij5], connection=[Keep-Alive],
host=[localhost], Content-Length=[2076647], user-agent=[Shockwave Flash],
Content-Type=[multipart/form-data;
boundary=----------ei4KM7KM7ae0cH2gL6GI3Ij5ae0Ij5], Accept=[text/*]}
--------------------------------------
2011-04-01 16:09:04,750 WARN
[org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper] -
WebApplicationException has been caught : Couldn't find MIME boundary:
------------ei4KM7KM7ae0cH2gL6GI3Ij5ae0Ij5
thank you very much!
--
View this message in context:
http://cxf.547215.n5.nabble.com/getting-a-Couldn-t-find-MIME-boundary-error-when-implement-a-REST-WS-to-upload-files-tp4272817p4274947.html
Sent from the cxf-user mailing list archive at Nabble.com.