I need to develop a web-service. Purpose of this service is read a oracle blob field(stores image file) and send to the client. Do you think which format is suitable for this blob field. If i send byteArray type, can client convert this to image. This method easy i can do that but according to the my google research image files or other file types can be sent url download link. Which is more sensible? My environment: j2ee,cxf,eclipse,soap
Share
In your wer-service read it as BLOB and then to Byte Array.
but to send it in response, you may need to put it in a proper content-type i.e either “image/jpeg” or “image/png” or whatever is right.
And also , you may need to send it as attachment in your response.
If its SOAP service then, SOAP with Attachement