abstract:
Note, I am not setting the header as I dont want an save/open dialog box...
Oh yes, one more thing.. sometimes on certain blobs, i get this error "java.lang.IllegalStateException: getOutputStream() has already been called for this response"
Why does this happens??
any suggestions??
thnx,
sgaucho
Hi,
I hv the fwg code that reads a blob from an Oracle db and outputs it.. the prob is that the output is shown in the same browser window or in some cases opens abruptly in another application (in my case it opened in Homesite!!)...
Is there any way I can force the output to appear in a new browser window like a pop up??
PHP Code:
response
.
setContentType
(
contype
);
// response.setHeader("Content-Disposition", "attachment; filename=\"" + doccode + excel +"\"");
long index
=
1
;
while(
index
<
doc
.
length
()){
response
.
getOutputStream
().
write
(
doc
.
getBytes
(
index
,
100
));
index
+=
100
;
}
Note, I am not setting the header as I dont want an save/open dialog box...
Oh yes, one more thing.. sometimes on certain blobs, i get this error "java.lang.IllegalStateException: getOutputStream() has already been called for this response"
Why does this happens??
any suggestions??
thnx,
sgaucho |