I have a rest service which produces the object of this format :
FileDetailsObject{
byte[] data; String position_of_logo; String username;
}
Is there a way to accomplish this in rest?
If it was just byte[] , I could use the Octet_Stream. But I need to return an object with a byte[].
I read about MediaType. Multipart_Form_Data but as far as I understand it seems to be associated with @Consumes where you can send it to a service post request.
Any pointers would be helpful.
Thanks