|
RE: Downloading BLOBS from Oracle DB: msg#00048java.enhydra.general
Hi,
I have done something similar with image
files..
You need to create a special Presentation Object for your
docs.
import com.lutris.appserver.server.httpPresentation.*;
public abstract class myDocPo implements HttpPresentation { ,,,
}
In you run() method you you need to set the
content-type, and length..
public void run(HttpPresentationComms
comms)
throws Exception { // initSessionData(comms);
comms.response.setContentType( insert whatever
the type is for MS word docs... );
comms.response.setContentLength(docLength); //
Then you need to write the output to the user's
browser..
comms.response.getOutputStream().write(buf,0,rlen);
comms.response.flush(); }
Sorry
I don't have a complete example that would make any sense to
you...
Hope
this helps.
Mike.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | newbie's question, ssp |
|---|---|
| Next by Date: | Problem in Jbuilder Flash Mime type, Michael Rani |
| Previous by Thread: | RE: Downloading BLOBS from Oracle DB, Thorsten Hilker |
| Next by Thread: | newbie's question, ssp |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |