Q:

set Content-Transfer-Encoding: 8bit for Multipart upload with Retrofit

I'm working with a multipart upload. I used Retrofit and here is my interface:
    @Multipart
    @POST (EndPoint.SEND_MMS)
    void sendMMS(@Part("text") String text,@Part("attachments") TypedFile attachment, Callback<Object> callback);

part "text" and "attachments" has Content-Transfer-Encoding: binary. The server side cannot extract data from "text", it require Content-Transfer-Encoding: 8bit instead of binary.
Do you have any solution for my problem.
Regards,

A:

@Multipart
@POST (EndPoint.SEND_MMS)
void sendMMS(@Part(value = "text", encoding = "8bit") String text,@Part("attachments") TypedFile attachment, Callback<Object> callback);

retrofit.http.Part javadoc

