Hi,
I have a Server Resource that returns an image.
the method declaration is:
@Get
public Representation getLogo(){...}

the returned value is:
new ByteArrayRepresentation(logo, MediaType.IMAGE_ALL)

on my test I'm using ClientResource and upon calling 
representation.getMediaType() (on the returned Representation) I'm getting: 
application/octet-stream.
When tested on the browser it didn't show the photo, I think it is because of 
the wrong content-type.

Is there a better way to return images saved in a DB?

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3051611

Reply via email to