Rename the zip file and send it using the Receiver Mail Adapter
Hi,
We have a custom module that will create multiple attachments. The result is then passed to the PayloadZipBean, which zips as per required.
When we output this to a file adapter, we provide the file name as say "zippedfile.zip" the result is as expected.
For example, if the custom module created 3 attachments with the names as file1.txt, file2.txt and file3.txt, the zip file zippedfile.zip, will contain 3 files as file1.txt, file2.txt and file3.txt.
The issue that we are facing is when we use the mail adapter, the zip file is getting renamed to file1.txt.zip i.e to say that it takes the name of the main payload from the custom module (file1.txt)
TextPayload txtpayload = message.getDocument();
txtpayload.setContentType("text/plain");
txtpayload.setName("file1.txt");
moduleData.setPrincipalData(message);
We tried using the MessageTransformbean but it doesn't seem to change the name of the file.
Not sure where we are going wrong. Is it that the output of the payloadzipbean cannot be used and altered by MessageTransformbean?
Is there any alternative as to rename the name of zipfiles and use it in the mail adapter?
Appreciate any help on this regard.
Regards,
Shabz
Solved.
use Transform.ContentDisposition - attachment;filename="youfilename"
Do read the mail adapter FAQ.
The parameter can vary for different mail client.
Similar Messages
-
Converting html file into zip file and send email attaching zip file
Hi Experts,
I am trying to send email with attachment(html). Which contains more than 7MB. So, It is throwing an error like Size exceeded.
So, Now i need to compress the data for less than 7MB.
I decided to convert HTML File into ZIP File.
Kindly suggest me to convert the HTML file into ZIP file and sending email with attached ZIP file.
Correct answer rewarded,
Thanks & Regards,
N. HARISH KUMARHi Experts,
*// HTML_TAB converting into ZIP File
DATA : zip_tool TYPE REF TO cl_abap_zip,
filename TYPE string ,
filename_zip TYPE string .
DATA : t_data_tab TYPE TABLE OF x255,
bin_size TYPE i,
buffer_x TYPE xstring,
buffer_zip TYPE xstring.
filename = text-007. "'HTML_TAB
*describe the attachment
DESCRIBE TABLE html_tab LINES tab_lines.
bin_size = tab_lines * 255.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = bin_size
IMPORTING
buffer = buffer_x
TABLES
binary_tab = html_tab.
IF sy-subrc <> 0.
* message id sy-msgid type sy-msgty number sy-msgno
* with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*create zip tool
CREATE OBJECT zip_tool.
*add binary file
CALL METHOD zip_tool->add
EXPORTING
name = 'FSSAI_MAIL.HTML'
content = buffer_x.
*get binary ZIP file
CALL METHOD zip_tool->save
RECEIVING
zip = buffer_zip.
CLEAR: t_data_tab[],bin_size.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = buffer_zip
IMPORTING
output_length = bin_size
TABLES
binary_tab = html_tab.
Thanks & Regards,
N. HARISH KUMAR -
I have my Yahoo Mail "poped" over to Apple Mail. I can recieve emails but I can't send them out. The blue bar at the bottom left of the Mail page gets half way across and then the pop-up "Cannot send message using the server" comes up? What do I do?
Your outgoing mail server is different than your incoming server. Usually the outgoing mail server will have smtp in it. I noticed yours said "cannot send message using the server mail.wavecable.com". That sounds like an incoming mail server. Try setting your outgoing mail server to smtp.wavecable.com
I hope that helps. -
I exported an archive of iCal from a computer running the last OS X. On a new computer running OS X (10.7.4), I tried to import the .icbu file and got a message "The calendar failed to restore". How do I fix this/get my calendar?
I exported an archive of iCal from a computer running the last OS X. On a new computer running OS X (10.7.4), I tried to import the .icbu file and got a message "The calendar failed to restore". How do I fix this/get my calendar?
-
Does the iphone 5 and iphone 5s use the same case
Does the iphone 5 and iphone 5s use the same case
Twice now you've given this useless answer. What's the point in even replying?
Case dimensions look to be identical, but some cases will hinder the fingerprint scanner. My Griffin Survivor will fit my brothers 5s easily, but as the home button is entirely covered, it's useless to him. -
Read Zip File and output it to the Stream
Hi,
I really need help with this topic. I need to write a function which as input read the zip file (inside: jpeg, mp3, xml)
and as output provide the output Stream of this zip file.
public OutputStream readZipToStream(String sourceZipFile) { ....}
I've tried something....
public static OutputStream readZipToStream(String src, HttpServletResponse response) throws Exception {
File fsrc = null;
ZipOutputStream out = null;
byte buffer [] = null;
FileInputStream in = null;
try {
buffer = new byte[BUFFER_CREATE];
fsrc = new File(src);
out = new ZipOutputStream(response.getOutputStream());
ZipEntry zipAdd = new ZipEntry(fsrc.getName());
zipAdd.setTime(fsrc.lastModified());
out.putNextEntry(zipAdd);
// Read input & write to output
in = new FileInputStream(fsrc);
while (true) {
int nRead = in.read(buffer, 0, buffer.length);
if (nRead <= 0)
break;
out.write(buffer, 0, nRead);
out.flush();
in.close();
} catch (IOException ioe) {
logger.error("Zip Exception: " + ioe.getMessage());
ioe.printStackTrace();
throw ioe;
return out;
} But the problem with this code when it returns ( I called from servlet: bellow)
it ask user to save the file as servlet.jsp file. So I would have to rename it to zip file later.
What I want to achive is it would ask to save zip file from the stream as name of the original zip file (if that is possible)
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
OutputStream stream = null;
response.setContentType("application/zip");
target = mount_media + File.separator + "test_swf.zip";
try {
stream = ZipUtil.readZipToStream(target, response);
} catch (Exception ex) {
System.out.println(ex.getMessage());
} finally {
if(stream != null) {
stream.close();
%>
<%@page import="java.io.File" %>
<%@page import="java.io.OutputStream" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
</body>
</html>Hi oleg_s ,
There's a contradiction of content in your JSP :
response.setContentType("application/zip");
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">The html part of your JSP seems useless for what you mean to do. Therefore, instead of a JSP, you should use a simple servlet to send your zip file. -
File Adapter to read Zip file and send it as input to another webservice
Hi,
I have the below requirement:
1. A service will generate 3 attachments and place it in a particular directory.
2. SOA service has to pick those 3 files and send those files as input to another custom application which will email.
Design :
1. First SOA will create an archive file of those 3 attachements and then file adapter will poll for that zip file in that location and send that file as a whole to the custom application.
Query:
Now my question, is the above design feasible? If so, how to configure the file adapter to pass the file as input to that custom application?
Kindly do the needful
Thanks,
PriyaYou can accomplish this via java embedding activity...Create a java embedding, which will create a zip file.. this java code is easy to implement..
You can also do away with un-necessary polling file adapter.. and you can use "Synchronous File Read" operation of File Adapter.. For Sync Read, you'll have to pass the zip file name, which you can easily fetch from java embedding activity..
Let me know, if this doesn't work. -
To upload the ZIP file and get the filenames available in ZIP file in ABAP
Hi Experts,
For my requirement, file from legacy comes as ZIP file with number of files in that.
Please provide one code sample to upload the ZIP file from local workstation and get the filenames available in ZIP file to check few filename validation checks for the available files in report program.
Thanks in Advance,
Regards,
Basani1. Copy the ZIP file into App server
2. Call function
call function 'RFC_REMOTE_PIPE'
destination 'SERVER_EXEC'
exporting
command = command " Unzip command gunzip /path & file
read = 'X'
tables
pipedata = std_lines
then you can read the files and can validate the file names
a® -
I am trying to run a Select query from Oracle DB job in Tidal. The results of this query can be output-ed in a CSV format. But, the requirement is for me to send out a CSV file, not just data in CSV format.
I've this same requirement with XML output format as well. Can we send out a "Completed Normally" mail with an XML output of the result of the Select query?
Thanks in advance.Hi,
I have a jpeg movie file 60 mins long and a text file tell me five time-lines for breaking the movie. For example, break the movie at 10:21, 16:05�
The final output should be five small jpeg movie files. Each file contains a 90 sec (30 sec before the break time and 60 sec after the break time).
Do you know any java library (jar) contain the library that can help me on programming this? Any existing source code? Any SDK for a movie editor can do that?
Please help.
Thanks
Kenny -
I am trying to burn music to a CD-R- message says: unable to locate the original file. Music is on the iTunes program but will not play or burn. Is there something I should change to be able to burn to CD?
If they were songs you purchased from itunes, try redownloading them from your purchases...
if that doednt work, make sure the optuon to copy files to itunes media folder is checked in settings, then find and download from the net. and re-add them to your library -
I am trying to access a message from early 2012. When I load previous messages It will only go back to oct 2012 and then the program stops and kicks my to the home page. Anyone know how I can get to the message? Thanks.
Try Spotlight Search
1. From any Home screen page of iPad, drag your finger down anywhere on the center of Home screen.
2. Spotlight search will now appear and you can search for apps, texts, or any other content you'd like just as you did on previous versions of iOS. -
How to ZIP file and send via SMTP in Oracle
Dear All,
I want to send data every month via email where the data i got from view.
The problem is the file is to big, so i should zip it.
the question is How i can perform it with procedure and send it automatically via Job every 1st month
what i've done was i create a procedure to make the file in zip
[quote/]
CREATE OR REPLACE PROCEDURE production.CREATE_EXCEL_DTKPITerminate IS
vvrun varchar2(3000);
vsender varchar2(100);
vrecepient varchar2(100);
vccrecipient varchar2(1000);
vsubject varchar2(1000);
vmessage long;
v_loc varchar2(5);
NAME: CREATE_EXCEL
PURPOSE:
REVISIONS:
Ver Date Author Description
1.0 10/15/2012 1. Created this procedure.
NOTES:
Automatically available Auto Replace Keywords:
Object Name: CREATE_EXCEL
Sysdate: 10/15/2012
Date and Time: 10/15/2012, 9:42:40 , and 10/15/2012 9:42:40
Username: (set in TOAD Options, Procedure Editor)
Table Name: (set in the "New PL/SQL Object" dialog)
begin
vsender := '[email protected]';
vrecepient := '[email protected]';
vccrecipient := '[email protected]';
vsubject := 'KPI Terminate'||TO_CHAR(SYSDATE,'MM-YYYY');
vmessage :=
'MESSAGE .';
as_xlsx.query2sheet('
select cmp_company,emp#,name,class,goucode,goudesc,job,job_name,tglkeluar
,nac_seq,nac_code,nac_type,nac_begin,nac_desc,reason,reason_code
from V_KPITerminate
--insert into blobs(blob_id,blob_name)
--values (1,as_xlsx.finish);
SEND_SMTP_PUZZLE_DTKRY(vsender,vrecepient,vccrecipient,vsubject,vmessage,as_xlsx.finish,'DataKPITerm -'||to_char(sysdate,'yyyy')||'.zip');
--as_xlsx.save( 'BASE_DIR3', 'SWT.xls' );
end;
[/quote]
when i execute this, Error ocured
Message : ORA-29278: SMTP transient error: 421 Service not available
ORA-06512 : at "SYS.UTL_SMTP", line 21
ORA-06512 : at "SYS.UTL_SMTP", line 97
ORA-06512 : at "SYS.UTL_SMTP", line 399
ORA-06512 : at "PU22PROD_123.SEND_SMTP_PUZZLE_DTKRY", line 151
ORA-29294 : A data error occurred during compression or uncompression.
ORA-06512 : at "PU22PROD_123.CREATE_EXCEL_KPITERM", line 60
ORA-06512 : at line 2
cann anyone help?
the data is too big so i prefer it zip.. can anyone help..
the SMTP I use is like this
CREATE OR REPLACE PROCEDURE production.SEND_SMTP_PUZZLE_DTKRY (pSender VARCHAR2,pRecipient VARCHAR2, pCCRecipient VARCHAR2, pSubject VARCHAR2,pMessage LONG,pattach BLOB,pfilename VARCHAR2) IS
v_src_loc BFILE := BFILENAME('BASE_DIR3', 'pajak.xls');
l_buffer RAW(54);
l_amount BINARY_INTEGER := 54;
l_pos INTEGER := 1;
l_blob BLOB := EMPTY_BLOB;
l_blob_len INTEGER;
v_amount INTEGER;
crlf CONSTANT VARCHAR2(2):= CHR(13) || CHR(10);
v_connection_handle UTL_SMTP.CONNECTION;
v_smtp_host VARCHAR2(30) := 'mail.mayora.co.id'; --My mail server, replace it with yours.
v_subject VARCHAR2(30) := 'Your Test Mail';
l_message VARCHAR2(200) := 'This is test mail using UTL_SMTP';
pcc varchar2(50);
i number := 1;
j number := 1;
l_original_blob blob;
l_compressed_blob blob;
BEGIN
BEGIN
/*Preparing the LOB from file for attachment. */
--DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
--dBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
--v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
--DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
--l_blob_len := DBMS_LOB.getlength(l_blob);
l_original_blob := pattach;
l_compressed_blob := TO_BLOB('1');
UTL_COMPRESS.lz_compress (src => l_original_blob,
dst => l_compressed_blob);
--DBMS_LOB.FREETEMPORARY(l_compressed_blob);
l_blob := l_compressed_blob;
l_blob_len := DBMS_LOB.getlength(l_blob);
/*UTL_SMTP related coding. */
v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host);
UTL_SMTP.HELO(v_connection_handle, v_smtp_host);
UTL_SMTP.MAIL(v_connection_handle, psender);
UTL_SMTP.RCPT(v_connection_handle, precipient);
if pCCRecipient is not null then
if(instr(pCCRecipient,',') = 0) then
utl_smtp.rcpt(v_connection_handle, pCCRecipient);
else
while(instr(pCCRecipient,',',i) > 0)
loop
pcc := substr(pCCRecipient,i, instr(substr(pCCRecipient,i),',')-1);
i := i+instr(substr(pCCRecipient,i),',');
utl_smtp.rcpt(v_connection_handle,pcc);
end loop;
pcc := substr(pCCRecipient,i,length(pCCRecipient));
utl_smtp.rcpt(v_connection_handle,pcc);
end if;
end if;
--UTL_SMTP.RCPT(v_connection_handle, v_cc_email_address);
UTL_SMTP.OPEN_DATA(v_connection_handle);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'FROM' || ': ' || psender || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'TO' || ': ' || precipient || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'CC' || ': ' || pCCRecipient || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'SUBJECT' || ': ' || pSubject || UTL_TCP.CRLF);
--MIME header.
UTL_SMTP.WRITE_DATA(v_connection_handle,
'MIME-Version: 1.0' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
' boundary= "' || 'BASE_DIR3.SECBOUND' || '"' ||
UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
-- Mail Body
UTL_SMTP.WRITE_DATA(v_connection_handle,
'--' || 'BASE_DIR3.SECBOUND' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'Content-Type: text/plain;' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
' charset=US-ASCII' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle, Pmessage || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
-- Mail Attachment
UTL_SMTP.WRITE_DATA(v_connection_handle,
'--' || 'BASE_DIR3.SECBOUND' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'Content-Type: application/octet-stream' ||
UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
' filename="' || pfilename || '"' || --My filename
UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
/* Writing the BLOL in chunks */
WHILE l_pos < l_blob_len LOOP
DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
UTL_SMTP.write_raw_data(v_connection_handle,
UTL_ENCODE.BASE64_ENCODE(l_buffer));
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
l_buffer := NULL;
l_pos := l_pos + l_amount;
END LOOP;
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
-- Close Email
UTL_SMTP.WRITE_DATA(v_connection_handle,
'--' || 'BASE_DIR3.SECBOUND' || '--' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
UTL_SMTP.CLOSE_DATA(v_connection_handle);
UTL_SMTP.QUIT(v_connection_handle);
EXCEPTION
WHEN OTHERS THEN NULL;
--return 1;
UTL_SMTP.QUIT(v_connection_handle);
RAISE;
END;
END;this is my smtp procedure
CREATE OR REPLACE PROCEDURE PROD.SEND_SMTP_PUZZLE_DTKRY (pSender VARCHAR2,pRecipient VARCHAR2, pCCRecipient VARCHAR2, pSubject VARCHAR2,pMessage LONG,pattach BLOB,pfilename VARCHAR2) IS
v_src_loc BFILE := BFILENAME('BASE_DIR3', 'pajak.xls');
l_buffer RAW(54);
l_amount BINARY_INTEGER := 54;
l_pos INTEGER := 1;
l_blob BLOB := EMPTY_BLOB;
l_blob_len INTEGER;
v_amount INTEGER;
crlf CONSTANT VARCHAR2(2):= CHR(13) || CHR(10);
v_connection_handle UTL_SMTP.CONNECTION;
v_smtp_host VARCHAR2(30) := 'mail.mayora.co.id'; --My mail server, replace it with yours.
v_subject VARCHAR2(30) := 'Your Test Mail';
l_message VARCHAR2(200) := 'This is test mail using UTL_SMTP';
pcc varchar2(50);
i number := 1;
j number := 1;
l_original_blob blob;
l_compressed_blob blob;
BEGIN
BEGIN
/*Preparing the LOB from file for attachment. */
--DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
--dBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
--v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
--DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
--l_blob_len := DBMS_LOB.getlength(l_blob);
l_original_blob := pattach;
l_compressed_blob := TO_BLOB('1');
UTL_COMPRESS.lz_compress (src => l_original_blob,
dst => l_compressed_blob);
--DBMS_LOB.FREETEMPORARY(l_compressed_blob);
l_blob := l_compressed_blob;
l_blob_len := DBMS_LOB.getlength(l_blob);
/*UTL_SMTP related coding. */
v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host);
UTL_SMTP.HELO(v_connection_handle, v_smtp_host);
UTL_SMTP.MAIL(v_connection_handle, psender);
UTL_SMTP.RCPT(v_connection_handle, precipient);
if pCCRecipient is not null then
if(instr(pCCRecipient,',') = 0) then
utl_smtp.rcpt(v_connection_handle, pCCRecipient);
else
while(instr(pCCRecipient,',',i) > 0)
loop
pcc := substr(pCCRecipient,i, instr(substr(pCCRecipient,i),',')-1);
i := i+instr(substr(pCCRecipient,i),',');
utl_smtp.rcpt(v_connection_handle,pcc);
end loop;
pcc := substr(pCCRecipient,i,length(pCCRecipient));
utl_smtp.rcpt(v_connection_handle,pcc);
end if;
end if;
--UTL_SMTP.RCPT(v_connection_handle, v_cc_email_address);
UTL_SMTP.OPEN_DATA(v_connection_handle);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'FROM' || ': ' || psender || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'TO' || ': ' || precipient || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'CC' || ': ' || pCCRecipient || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'SUBJECT' || ': ' || pSubject || UTL_TCP.CRLF);
--MIME header.
UTL_SMTP.WRITE_DATA(v_connection_handle,
'MIME-Version: 1.0' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
' boundary= "' || 'BASE_DIR3.SECBOUND' || '"' ||
UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
-- Mail Body
UTL_SMTP.WRITE_DATA(v_connection_handle,
'--' || 'BASE_DIR3.SECBOUND' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'Content-Type: text/plain;' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
' charset=US-ASCII' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle, Pmessage || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
-- Mail Attachment
UTL_SMTP.WRITE_DATA(v_connection_handle,
'--' || 'BASE_DIR3.SECBOUND' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'Content-Type: application/octet-stream' ||
UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
' filename="' || pfilename || '"' || --My filename
UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
/* Writing the BLOL in chunks */
WHILE l_pos < l_blob_len LOOP
DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
UTL_SMTP.write_raw_data(v_connection_handle,
UTL_ENCODE.BASE64_ENCODE(l_buffer));
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
l_buffer := NULL;
l_pos := l_pos + l_amount;
END LOOP;
UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
-- Close Email
UTL_SMTP.WRITE_DATA(v_connection_handle,
'--' || 'BASE_DIR3.SECBOUND' || '--' || UTL_TCP.CRLF);
UTL_SMTP.WRITE_DATA(v_connection_handle,
UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
UTL_SMTP.CLOSE_DATA(v_connection_handle);
UTL_SMTP.QUIT(v_connection_handle);
EXCEPTION
WHEN OTHERS THEN NULL;
--return 1;
UTL_SMTP.QUIT(v_connection_handle);
RAISE;
END;
END;
is there a mistake? -
Reading the datas in the Xml file and store it in the array using java
Hi every one
Can any one send me the java coding for traversing through XML file and get the data and store it in the array (SAX parser is prefered)
its a urgent requirement . please help me
Regards
Aruni send it to ur mail id ,
could you please send me a mail to [email protected] -
IB- Downloading the file and send it to the user
Hello BW gurus,
I have a question. I have automated the ECC Z table loading process. Like I have a program which will run the ztable update process logic and will update the table and after that it will raise an event in the BW system. Based on the event the process chain will be triggered.
After the BW data load. I want to add an extract step like run the query and then download the file in excel format and send an email to the user. I know this has to be done by information broadcasting. I haven't looked at the documentation. Maybe you guys can explain to me like how to acheive this in the process chain.
Thanks in advance for your help.
SenthilHello Gurus Any solution for the above issue. Thanks
-
How to get data from pdf file and send contents of the pdf file to R/3
Hi, experts,
Action:
1. Make a pdf forms (interactive form) with inputfield named A_inputfield in the webdynpro application and run the webdynpro application.
2. In the IE, click the save button in the pdf interactive form and save the pdf to local disk,ex: C disk. Close the IE browser.
3. Open the pdf interactive form from the local C disk and type "aaa" to the A_inputfield.
4. I want to save the "aaa" to the R/3 system using webdynpro or using other tools . How can I do it?
First way:
If I use webdynpro application to save the content of the pdf, I don't find a way mapping or binding the content to a context of a view. So I don't think this way is unadvisable.
Second way:
Adding a button "submit" in the pdf forms when create the pdf form. Runing the webdynpro application, save the pdf to local disk,ex: C disk. Opening the pdf interactive form from the local c disk and typing "aaa" to the A_inputfield, click the "submit" button to save the content. Of course, I need to finish the code for clicking "submit" button. But I don't know how to write these codes and where to write these codes. Do you give me some advise ?
Best regards,
taoHi, Abhimanyu L,
Thanks a lot for your help. Your answer can give me large developmental.:)
I find http://help.sap.com/saphelp_erp2005/helpdata/en/67/fae9421dd80121e10000000a155106/content through searching google for CL_WD_ADOBE_SERVICES class. But I don't find any exmples for the class. Do you give me some hint for some exmples for the class?
Best regards,
tao
(You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected])
Maybe you are looking for
-
How can i change the font color in TextArea ?
I want to change the font color in text area or text field i'm not using swing (i'm using only AWT) so don't show me solutions in swing because it won't help me. is it possible anyway? thanx
-
Concatenate rows from the same table
Hi, I have a table t1 with one column and 2 rows. I need to make a column with 1 row that is a concatenation of the rows from table t1. Can someone help me with this? Thank you.
-
Alerts from the Adapter Framework
Hello, I have configured the CCMS to monitor XI message processing. For the Integration Server that works fine. But for the Adapter Framework I don't receive any alerts. I use the CIDX Adapter and I would like to receive an alert, when a RAE has been
-
Hi Xpertz Could any one help me out in the following I have an existing query.In that One char is having authoraisation variable now i want to give one more variable on the same char for selection.how can i achieve . this with out deleting the author
-
How to write 14.316523E-06 to spreadsheetfile
I want to write a string of format %f (for ex. 14.316523E-06...)to a spreadsheet file, the result I get is 0.000014. So the result is limited to 7- digits and this way I lose some important precision. I use the write to spreadsheet file vi with forma