public interface PostMessage {
@Multipart
@POST("https://www.example.com/message")
void sendMessage(@QueryMap Map<String, String> queryMap,
@Part("image") TypedFile imagefile, Callback<Response> response);
}
I tried queryMap encryption using @Feild and @Body. But this gives an IllegalArgumentException with the message "Only one annotation is allowed for encoding . "
My question is:
Can data encryption with multipart be used in one request?
source
share