Hello, you should extend the OutputRepresentation class and override the write method.
Best regards, Thierry Boileau > I would like to have my restlet serve the content of a blob column in > database as it were a file identified by the URI. > > After getting the blob content as a byte array, I could not figure out how > restlet framework is intended to be used to create a representation that > contains the byte array. > > Shall I create an InputRepresentation and connect it to an InputStream that > reads from the byte array? Shall I extend OutputRepresentation and overwrite > the 'write' method? Or is there an implementation already designed for this? > > I appreciate any advices for the next step. > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2452637 > > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2453465

