Servlet retrieves pdf content stored in oracle and sends this content
I have pdf content stored in an oracle database. The database column type is LONG RAW. I am retrieving the contents using jdbc's getBinaryStream. The content type is set to pplication/pdf. When the code is executed, the acrobat is launched but the content is not displayed. After analyzing the contents retrieved from the database, I discovered that characters were missing. I replicated the same code in a different language and it was working.
Has anyone else encountered this problem? If so, how was it resolved.
Any ideas or comments would be appreciated.
z.
What is the character set of the Oracle db that you are using. I would suggest that you try to set the char set to Unicode and try.
Similar Messages
-
How to create xml file from Oracle and sending the same xml file to an url
How to create xml file from Oracle and sending the same xml file to an url
SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way. -
hi all and adobe forum team
im download felx bulder 3 and make a new flex project ....
its ok
but when i want to run my project i take empty page with the
error code " Alternate HTML content should be placed here. This
content requires the Adobe Flash Player. Get Flash "
that error mean i havent flash player on my pc
but i have because it will installed by default with adobe
flex builder, and flash cs3 on my pc, and im installed it from
adobe web site, and im installed it from cd
but without any result, i have same the error when i want to
run my flext project
i take "Alternate HTML content should be placed here. This
content requires the Adobe Flash Player. Get Flash "
plz help me why
note: im using windows vista ulimateI had the same problem.
After I've installed new flash player version 9.0.60.120.
I've got the same error.
I'm using Korean windows. Maybe that's the problem. I don't
know yet.
I will test on English machine tomorrow.
Anyway,
Problem is caused by version detaction javascript.
In AC_OETags.js file, there is ControlVersion() function.
Inside of that function,
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
this line throw error with catching but do nothing.
So, overall javascript recognize flash player as version 2.0
and something.
I testd this on firefox 2.0.0.4 and IE 7.0.5730.11.
There are all Korean version and failed.
But Safri beta version for Window works fine.
This does not have any Korean version yet. That's why I
assume maybe
that's causing the problem.
So, I guess Adobe people will do something for this, but if
you want to
run it right now without this error message.
Easiest way is just turn off that Flash player version
detection in
project properties > Flex Complier > HTML wrapper.
Uncheck Require Flash player version.
Or edit your Javascript by yourself in
html-template>AC_OETags.js.
like below;
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
I hope this will be solved quickly.
Dongwook, Kwon.
awwad ¾´ ±Û:
> hi all and adobe forum team
>
> im download felx bulder 3 and make a new flex project
.... its ok
> but when i want to run my project i take empty page with
the error code "
> Alternate HTML content should be placed here. This
content requires the Adobe
> Flash Player. Get Flash "
>
> that error mean i havent flash player on my pc
> but i have because it will installed by default with
adobe flex builder, and
> flash cs3 on my pc, and im installed it from adobe web
site, and im installed
> it from cd
> but without any result, i have same the error when i
want to run my flext
> project
> i take "Alternate HTML content should be placed here.
This content requires
> the Adobe Flash Player. Get Flash "
> plz help me why
> -
Alternate HTML content should be placed here. This content requires the Adobe Flash Player
Somehow today I get this message when I am tring to open
website with flash player :
Alternate HTML content should be placed here. This content
requires the Adobe Flash Player
Yesterday was ok but not today ! with netsacpe and mozila
it’s ok but with EI dosnt work anymore !I had the same problem.
After I've installed new flash player version 9.0.60.120.
I've got the same error.
I'm using Korean windows. Maybe that's the problem. I don't
know yet.
I will test on English machine tomorrow.
Anyway,
Problem is caused by version detaction javascript.
In AC_OETags.js file, there is ControlVersion() function.
Inside of that function,
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
this line throw error with catching but do nothing.
So, overall javascript recognize flash player as version 2.0
and something.
I testd this on firefox 2.0.0.4 and IE 7.0.5730.11.
There are all Korean version and failed.
But Safri beta version for Window works fine.
This does not have any Korean version yet. That's why I
assume maybe
that's causing the problem.
So, I guess Adobe people will do something for this, but if
you want to
run it right now without this error message.
Easiest way is just turn off that Flash player version
detection in
project properties > Flex Complier > HTML wrapper.
Uncheck Require Flash player version.
Or edit your Javascript by yourself in
html-template>AC_OETags.js.
like below;
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
I hope this will be solved quickly.
Dongwook, Kwon.
awwad ¾´ ±Û:
> hi all and adobe forum team
>
> im download felx bulder 3 and make a new flex project
.... its ok
> but when i want to run my project i take empty page with
the error code "
> Alternate HTML content should be placed here. This
content requires the Adobe
> Flash Player. Get Flash "
>
> that error mean i havent flash player on my pc
> but i have because it will installed by default with
adobe flex builder, and
> flash cs3 on my pc, and im installed it from adobe web
site, and im installed
> it from cd
> but without any result, i have same the error when i
want to run my flext
> project
> i take "Alternate HTML content should be placed here.
This content requires
> the Adobe Flash Player. Get Flash "
> plz help me why
> -
How can I read content from PDF file stored in Oracle 9i XMLDB
Hi Friends:
Now I have met one question that I don`t know how to read some String , for example "Hello", from the PDF file stored in the Oracle 9i XMLDB, I have stored that PDF file into the XMLDB now, any suggestions are appriciated . Thank you in advance.You may be able to do something with Oracle Text. The following shows how to get an HTML rendiditon of a binary document. I think you can also get plain text instead of HTML
set echo on
spool xfilesUtilties.log
connect sys/&1 as sysdba
grant ctxapp to &2
connect &2/&3
begin
ctxsys.ctx_ddl.create_policy(policy_name=>'XFILES_HTML_GENERATION', filter=>'ctxsys.auto_filter');
end;
create or replace package xfiles_internal_11010
authid definer
as
function renderAsHTML(sourceDoc BLOB) return CLOB;
end;
show errors
create or replace package body xfiles_internal_11010
as
function renderAsHTML(sourceDoc BLOB)
return CLOB
as
html_content CLOB;
begin
dbms_lob.createTemporary(html_content,true,DBMS_LOB.SESSION);
ctx_doc.policy_filter(policy_name => 'XFILES_HTML_GENERATION',
document => sourceDoc,
restab => html_content,
plaintext => false);
return html_content;
end;
end;
show errors
create or replace package xfiles_utilities_11010
authid current_user
as
HOME_FOLDER constant varchar2(700) := xdb_constants.HOME_FOLDER;
PUBLIC_FOLDER constant varchar2(700) := xdb_constants.PUBLIC_FOLDER;
function renderAsHTML(sourceFile VARCHAR2) return CLOB;
function transformToHTML(xmldoc XMLType, xslPath VARCHAR2) return CLOB;
end;
show errors
create or replace package body xfiles_utilities_11010
as
function renderAsHTML(sourceFile VARCHAR2)
return CLOB
as
begin
return xfiles_internal_11010.renderAsHTML(xdburitype(sourceFile).getBLOB());
end;
function transformToHTML(xmldoc XMLType, xslPath VARCHAR2)
return CLOB
as
html clob;
begin
select xmldoc.transform(xdburitype(xslPath).getXML()).getClobVal()
into HTML
from dual;
return html;
end;
end;
show errors
grant execute on xfiles_utilities_11010 to public
create or replace public synonym xfiles_utilities for xfiles_utilities_11010
quitMessage was edited by:
mdrake -
Create PDF based on spool ID and store on content server
Hi all,
I need to create a PDF file from a spool ID and store this in a repository on the content server (archive). How can I do this <b>without creating a physical file on the local workstation</b>?
All helpful answers will be rewarded!
- Mari VirikHi Mari,
This is a sample report pgm which create pdf file from spool id :
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
Alternative way could be to submit another program and store spool
id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
Get spool id from program called above
IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
<b>and then use archiving object to store the photo i have explained you as an example</b>
You have to create a content repository "A2" or another . You have to follow then next steps :
Create a content repository with storage type FILE archive.
Tcode OAC0
IMG: Basis Components Basis Services SAP Archive Link Basic Settings Maintain content repositories
(Embedded image moved to file: pic00041.pcx)
Swap from display to amend. Select a current entry and 'copy' or just hit 'create'. Then select .
(Embedded image moved to file: pic18467.pcx)
Then fill in the details as below:
Choose a two char name
Set DocArea to be 'Archive Link'
Storage type FILE archive (see Note below on how to get this!)
Choose Version no. 0031
Enter the path name where the photos are to be loaded from. Note this is for loading only. When the photos are linked into the sap system (see later), actually, SAP takes a 'copy' and stores it elsewhere. The path may only need to be entered to 'Arch.path', but entering to all three doesn't seem to hurt.
Note on storage type:
Storage type 'FILE archive' may not be in the dropdown list, and F4 (poss entries) may not work! If this is the case, click on the field Storage type (left mouse button) and then click the right mouse button. Choose Possible entries and a full list of all
possible storage types is shown. FILE archive is entry number 08 and then
Check which content repository (Archive) is linked to document type HRICOLFOTO in object type PREL.
Tcode OAC3
Table TOAOM_C
IMG: Basis Components Basis Services SAP Archive Link Basic Settings Maintain Links
(Embedded image moved to file: pic06334.pcx)
Set the 'Content R' field to the one you've just set in the step above.
Note the Ret.per. field is the retention period for the photo in MONTHS. (so the default is 833 years and 3 months!)
Now you can link the photo to the employee.
<b>Pls reward pts if found usefull :)</b>
Regards
Sathish -
Reg. PDF file stored in oracle server directory
Dear All ,
How to stored PDF generated file in oracle server directory.
Thanks & Regards
shaileshYou need a directory object in Oracle for that server directory. That directory needs to be accessible (permission/ACL wise) to the local database processes to read/write from/
The schema that will be doing the read/write using that directory object, needs read/write privs on it.
UTL_FILE is used by PL/SQL code to write database contents to file. -
Extracting the DML queries by LCR in Oracle and send them over to IBM MQ
Hi,
My question is mostly about the concept of LCR (logical change recortds in Oracle Streams)
I want to extract any DML script which has been applied to one specific table, but i don't want to apply this DML anywhere , I just want to send it over by AQ in oracle and then
the MQ queues in IBM will recieve it.
I don't know what the Mainframe guys are going to do with it but my task is to just send them the script?
Do you think it's possible using the LCRs?
Thanks in advance for comments!I had implemented such a setup few months back and it works fine except for some performance issues.
you'll need to implement oracle streams and oracle messaging gateway for this propagation.
below mentioned are the generalized steps:
>>capture changes from redo log for the table by creating a capture process.
>>store these messages in the staging area of advanced queues, which in turn are queues themselves.
>>use apply process to enqueue these messages onto messaging gateway queue.
>>the messages can be transported to Websphere MQ by creating propagation jobs, foreign queue links, messaging gateway agents etc.
you can figure out the basic details using the link mentioned below.
http://csus-dspace.calstate.edu/bitstream/handle/10211.9/1004/Masters%20Project%20Report_Raj_1222010.pdf?sequence=1 -
E-Mails in IPad and iPhone without content and sender "This E-Mail has no content"
Often I get E-Mails listet without content and no sender "This E-Mail hasn't got any content" I can't get rid of the ghost, only by total restarts. . Why does this happen and how can Iavoid this? Klaus
Move them out of the trash and back into the Inbox.
Open the Trash, tap Edit, tap the email to select it, then tap Move. -
SAP BW data in ODS to XML and sending this XML file to 3rd Party
Hi Gurus,
We are having a scenario in which we have to convert our data in ODS to XML and need to provide this XML file to our clients so that they can use this XML file in their 3rd party system.
Now the issue is that i have created ABAP program for converting into XML.
If I execute this program, since i have given path as my Desktop, the converted XML file gets saved on my Desktop.
But the problem is how i can provide this XML file to the client.
Is there any way of converting this XML file to html and send them the URL ......
plz suggest me.... what can be done......
my ABAP code u can see in the following link
Extract SAP BW Data into XML
thanks and regards,
P.Madhusudhan RajuHi,
Pls go through the link below it may help you
http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417100)ID1537206350DB01670597797729934632End?rid=/library/uuid/8c10aa90-0201-0010-98a0-f071394bc9ae&overridelayout=true
Regards,
Marasa. -
So I have a chunk of data that only resides in Oracle. So I need to capture that information from Oracle. Now before you get over zealous, I did try with an OPENQUERY and it took FOREVER! And I don't know why the OPENQUERY took FOREVER but if I run the same
query directly against Oracle it runs very quickly...like 20 seconds.
So now I'm wondering...can I build a dataset in my SSRS Report that uses an Oracle Data source and an Oracle Stored Procedure in its Dataset that I'll create to aggregate this subset of data and then utilize its result set back in my main reporting
Dataset that will utilize SQL Server? And how can I do that? Can I make my main Dataset reference, say, a #TemporaryTable that is created from my Oracle Dataset in its
I'll continue to Google a few things as I await your review and hopefully a reply.
Thanks in advance for your help.Hi ITBobbyP,
According to your description you want to use data from a Oracle data source into a DataSet which retrieving data from SQL Server. Right?
In Reporting Services, we can have multiple data sources in one project pointing to different database. And we can use separated dataset to retrieve data from different data source. However, it's not supported to combine the two datasets together
directly. We can only use Lookup(), LookupSet() function to combine fields from different dataset into one tablix when there are common columns between two datasets. This is the only way to make tow result sets together in SSRS.
Reference:
Lookup Function (Report Builder and SSRS)
LookupSet Function (Report Builder and SSRS)
Best Regards,
Simon Hou
TechNet Community Support -
View pdf file stored in oracle database through oracle forms
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
I have created external directory and am able to load pdf files in oracle database table called test_blob.
CREATE TABLE test_blob (
id NUMBER(15)
, file_name VARCHAR2(1000)
, image BLOB
, timestamp DATE
I have 2 pdf files in the table. I want to view this pdf from forms when the user clicks on the button. On when-button-pressed trigger I want to show pdf on the screen. Any help is appreciated. Not on the designer. I want to run form application.
SELECT id, file_name,
DBMS_LOB.GETLENGTH(image) Length,
timestamp
FROM test_blob
ID|FILE_NAME|LENGTH|TIMESTAMP
1001|2011 HeartlandEmployeeReferralCard.pdf|353718|1/28/2013 11:44:41 AM
1002|2011 HeartlandEmployeeReferralCard.pdf|353718|1/28/2013 11:51:07 AM
Edited by: user_anumoses on Jan 28, 2013 11:45 AMWe were able to do the same thing with Oracle Application Server and Oracle WebLogic Server. I cannot remember how different the processes were, but it seems like they were very similar. I am going to give you the instructions on how we implemented a "Read PDF" procedure on the WebLogic Server. If you are still on the Application Server you may have to do some Google searches, but it all boils down to the mod_plsql DAD Configuration file.
Our PDF was located in a table with the following structure:
CASE_DOCUMENTS
(id_document NUMBER NOT NULL,
doc_blob BLOB,
note VARCHAR2(240),
created_by VARCHAR2(20) NOT NULL,
created_dt DATE NOT NULL,
case_id NUMBER NOT NULL,
filename VARCHAR2(100) NOT NULL)Based on that table structure we created a procedure named READ_PDF which you will reference below in the dads.conf file below:
CREATE or REPLACE procedure read_pdf (p_id_document IN number)
is
view_file blob;
BEGIN
select doc_blob
into view_file
from case_documents
where id_document = p_id_document;
OWA_UTIL.MIME_HEADER ('APPLICATION/PDF', FALSE);
HTP.P ('CONTENT-LENGTH: ' || DBMS_LOB.GETLENGTH (view_file));
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (view_file);
END;
GRANT EXECUTE ON read_pdf TO financial_user_role -- Name of role to execute
/Basically, you are passing in one parameter and that is the primary key for your table. You are selecting the pdf stored in a BLOB for that primary key. The commands below that allow the pdf to open up so you can view it – we got this off some search we did a few years ago.
Now, you need to add logic to your Oracle Form that will call the procedure above, but the URL is based on the dads.conf file that we will set up below… Anyway, we created a button on the form module with a label of "View". In the WHEN-BUTTON-PRESSED trigger the logic looks like this:
-- The View logic uses the DAD (Database Access Descriptors) method to view a .pdf file from the form.
-- The DAD was created on WebLogic Server with the name findadgen. This allows an http request be made
-- to the database.
declare
v_file varchar2(400);
v_success boolean;
ret_val number;
v_http_link varchar2(400);
begin
-- The format of the link is as follows: hostname:port/pls/DAD_name/procedure_name
v_http_link := 'http://finas03:8888/pls/findadgen/read_pdf?p_id_document=' || :case_documents.id_document;
web.show_document(v_http_link, '_BLANK');
end;The name of our WebLogic Server is "finas03" so that is what is listed in the URL. The "findadgen" is the name of the <Location> in the dads.conf file below, the "read_pdf" is the name of the procedure we created above, the "p_id_document=" is the IN parameter listed in the READ_PDF procedure created above, and the ":case_documents.id_document" is the reference to the primary key in our Oracle Form.
For WebLogic, you can either go through Enterprise Manager (directions below) or update the dads.conf file on the filesystem directly (if you update the dads.conf file directly then skip to step 4 and ignore step 5):
1. Enterprise Manager -> Web Tier -> ohs1
2. Oracle HTTP Server (pull-down) – Administration – Advance Configuration
3. Select File – dads.conf
4. Add something similar:
# ============================================================================
# mod_plsql DAD Configuration File
# ============================================================================
# 1. Please refer to dads.README for a description of this file
# ============================================================================
# Note: This file should typically be included in your plsql.conf file with
# the "include" directive.
# Hint: You can look at some sample DADs in the dads.README file
# ============================================================================
<Location /pls/findadgen>
SetHandler pls_handler
Order allow,deny
Allow from All
AllowOverride None
PlsqlDatabaseUsername financial
PlsqlDatabasePassword sdo_3#d1
PlsqlDatabaseConnectString ffindbTNSFormat
PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
PlsqlAuthenticationMode Basic
PlsqlDefaultPage read_pdf
</Location>You are adding the <Location> section to your dads.conf file. The "finddadgen" is the name that you will reference in a change you fill make to your Oracle Form. The "financial" is the Schema, the "sdo_3#d1" is the password for that Schema, the "ffindb" is the database that the stored procedure is located on, and the "read_pdf" is a stored procedure you will have to create in order to read the pdf.
5. Press the "Apply" Button
6. Obfuscate the DAD password by running the dadTool.pl script located in $ORACLE_HOME/bin (This was done on Unix on our server with the following commands):
$> LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH
$> cd $ORACLE_HOME/bin
$> perl dadTool.pl -f /u01/app/oracle/middleware/asinst_1/config/OHS/ohs1/mod_plsql/dads.conf
7. Restart the Oracle HTTP Server using Fusion Middleware Control:
Enterprise Manager -> Web Tier -> ohs1
Oracle HTTP Server – Control – Shutdown
Oracle HTTP Server – Control – Start Up
If you followed the instructions above, you should have created a stored procedure, added logic to your Oracle form to reference that stored procedure, and created an entry in the dads.conf file. Once you move the form onto the server and you restart the HTTP Service, you should be able to view a pdf that is stored in a table directly from your Oracle Form. -
I have forms that I have created with submit buttons, that are filled out and sent complete to an email box. I would like to do the same only have my form filled out on an ipad and then have the submit button send the completed form the same way.
I don't want to gather the data, since i am doing this for another department. They want to track there own data via the Pdf's they receive. Is this possible?majende,
Adobe Reader for iOS does support a Submit button.
(a) Button action to submit an entire PDF document via email
(b) JavaScript submitForm to Adobe FormsCentral
Do you use the desktop version of Adobe Acrobat to create a PDF form?
For option (a)
Add the "Submit a form" action to your Submit button.
Enter "mailto:" (including a colon) followed by email recipient(s). Please add a comma between two email addresses.
Example: [email protected], [email protected]
Select "PDF The complete document".
This particular type of PDF form will work with Adobe Reader desktop and mobile products (including Adobe Reader for iOS and Android).
In Adobe Reader for iOS, a user can do the following steps to submit the particular type of PDF form.
Fill out the PDF form.
Tap the Submit button in the PDF form.
Select "Share Original Document" or "Share Flattened Copy" from the Share File dialog.
Adobe Reader for iOS will automatically fill in the email address(es) that you specified when you created the PDF form.
Tap the Send button in the upper right corner.
Adobe Reader for iOS will send the PDF form as an email attachment via Apple Mail (the default mail app for iOS).
Please let us know if you have additional questions. -
How can I sync without losing content of my ipod and transfer its contents to itunes library
How can I sync my ipod classic w/o losing content and therefore able to transfer its content to the itunes library?
See this older post from another forum member Zevoneer covering the different methods available for copying content from your iPod back to your computer and into iTunes.
https://discussions.apple.com/thread/2452022?start=0&tstart=0
B-rock -
Have Acrobat 6.0 and 9.0 installed. I need 6.0 for distiller function. Whenever I try to open a .pdf file in a site I get an error message that Acrobat has a problem and the file will not open.
Good day,
You can initiate a Repair installation from Control Panel > Programs by clicking on the Acrobat 9 installation, choosing 'Change' then following the prompts for a repair install.
I missed the part where you mentioned the error was occurring on launch. Sorry about that.
Kind regards,
David
Maybe you are looking for
-
Recover a single file in Content Services
I've been asked to document how we would go about recovering a single file in Content Services. The Trash/Archive angle I'm clear on, but what about an extreme case. Lets say that someone created a file, trashed it, emptied the trash, and then it exp
-
JAVA ERROR MESSAGE WHEN POSTING CHANGES TO OC4J
We are using Oracle9iAS v1.0.2.2.2a. From the Client we succed in posting and commiting changes to our BC4J on the Middletier. The next time we postchanges we get the following exeption on the OC4J AS: oracle.jbo.DMLException: JBO-26080: Error while
-
When I use widgets and type something into a field within widgets my keyboard does not function properly after. I would like help with solving this problem.
-
Users saving or downloading photos
Hello, Does anyone know if it is possible for users to download photos from Muse website photo galleries. I've tried adding photos to a gallery and I've found there is no download option nor can I right click and save the photo. Any advice would be a
-
Error transmitting the request byte stream
I got error message when I try to store archive file via ixos LEA9.6.0. The message text is "Job started Step 001 started (program RSARCH_STORE_FILE, variant , user name SAWANG) The archive file 000733-001MM_ACCTIT is being processed Error transmitti