Hi !
I've a strange problem with the uploading file with pics.
When I uplaod a simple RTF file the content of the file is ok. But when I
insert the same file with a simple pics inside the content of the file is
empty.
Please find my interface :
@POST
@Consumes("multipart/form-data")
public Response sendFaxPost(MultipartBody attachment) throws Exception {
// presumes the part has a content id
Attachment a = attachment.getAttachment("FXS_ATTACHMENT");
InputStream rtf = a.getDataHandler().getInputStream();
//write file to filesystem
....}
First case (simple RTF): file is ok
Second case (same RTF with simple jpg inside ): file size is 0
Hope you can help.
Best regards,
Lolo
--
View this message in context:
http://cxf.547215.n5.nabble.com/Prob-uploading-file-with-pics-tp5160008p5160008.html
Sent from the cxf-dev mailing list archive at Nabble.com.