Hi to all.
I need to send a PDF File through WEBSTREAM using a CGI Wrapper ...
I work with WebSpeed ... OpendEdge 10.2.B on Windows Server
Our ERP is written in OpenEdge Progress 10.2.B on AIX System ..
I am not an expert in WEBSPEED framework.
In my CGI Wrapper i retrieve PDF File stored in AIX system , running a procedure .p using an APPSERVER that output a temp-table with a BLOB Field.
i.e
....
....
....
define temp-table tt-outpdf no-undo
field file-number AS INTE
field file-date AS DATE
field file-content AS BLOB.
RUN <my_appserver_program> ON hAppSrv ( INPUT NumberInvoice,
INPUT DateInvoice,
OUTPUT TABLE tt-outpdf) NO-ERROR.
Doing that, i obtain PDF File stored in tt-outpdf.file-content field.
Now it is beginning my doubts.
I have so 2 questions ...
1) How can i write 4GL Code to send the content of tt-outpdf.file-content field to WEBSTREAM ???
That is how to send content of PDF File TO WEBSTREAM...
I read of a OUT-LONG include or something like this...
2) In my CGI WRAPPER , what i have to write in OUTPUT HEADER Section.. ???
Ie. OUTPUT-CONTENT-TYPE(" WHAT I HAVE TO SPECIFY ??? ").
Output will be manipulate from a third software company , they ask to me to send the content of a PDF File to webstream.
Never i did something of similar.
Regards in advance.
I need to send a PDF File through WEBSTREAM using a CGI Wrapper ...
I work with WebSpeed ... OpendEdge 10.2.B on Windows Server
Our ERP is written in OpenEdge Progress 10.2.B on AIX System ..
I am not an expert in WEBSPEED framework.
In my CGI Wrapper i retrieve PDF File stored in AIX system , running a procedure .p using an APPSERVER that output a temp-table with a BLOB Field.
i.e
....
....
....
define temp-table tt-outpdf no-undo
field file-number AS INTE
field file-date AS DATE
field file-content AS BLOB.
RUN <my_appserver_program> ON hAppSrv ( INPUT NumberInvoice,
INPUT DateInvoice,
OUTPUT TABLE tt-outpdf) NO-ERROR.
Doing that, i obtain PDF File stored in tt-outpdf.file-content field.
Now it is beginning my doubts.
I have so 2 questions ...
1) How can i write 4GL Code to send the content of tt-outpdf.file-content field to WEBSTREAM ???
That is how to send content of PDF File TO WEBSTREAM...
I read of a OUT-LONG include or something like this...
2) In my CGI WRAPPER , what i have to write in OUTPUT HEADER Section.. ???
Ie. OUTPUT-CONTENT-TYPE(" WHAT I HAVE TO SPECIFY ??? ").
Output will be manipulate from a third software company , they ask to me to send the content of a PDF File to webstream.
Never i did something of similar.
Regards in advance.