Saving Email as a .msg file on local machine
Hi Everyone,
I have a requirement of reading an email from the INBOX folder and later save it as a .msg file on my local machine. Although, the file is getting created, I am unable to open it. However, when the file is saved as an .eml file, it works fine.
I have tried saving a .msg file from outlook and opening it, however, the problem is with the email file saved as .msg file using java.
Any suggestions on fixing this problem.
Thanks,
Nitin
Hi nithin,
You can achieve this when the client send the message to you in octet streem then the par object contains the message subject as file name along with .msg files . if you store the same you can retrieve by using
response.setcontenttype("octet-stream")
and retrieve the stored message in .msg extension. can you pleasse let us know hoe you are capturing the part and storing in PC , I mean which type of part you are trying to open whether the part object content in octet stream or message/RFC822 format. please let me know.
Similar Messages
-
Problem in creating file on local machine
Hello everbody...
i m using forms and reports 6i
i m creating file out_file := Text_IO.Fopen(:filepath || '.csv', 'a'); using this command in before_report trigger. And closing file in after_report trigger.
here filepath is = \\IP address of local machine\d$\file name
now problem is that if i m giving IP address of local machine then its giving error ORA-39856.
And if i m giving IP address of server machine then it is going to create file on server machine from local machine.
Why its not creating file on client machine?
i think there r problems related to rights
can anyone has solution then please tell meyes in report there is report output and with that it also creating file in coding by
out_file := Text_IO.Fopen(:filepath || '.csv', 'w');
this open stmt is written in before report trigger
Below lines r written for each row thats fetch by report main query.
str := rpad(:apt_bil_no,8,' ') || ',' || lpad(:apt_bil_dt,10,' ') || ',"' ||
rpad(:supl_name,30,' ') || '",' || rpad(:supl_tin_no,11,' ') || ',' ||
rpad(:aptvat_hsn_no,10,' ') || ',' ||
lpad(ltrim(to_char((apt_amt2 - apt_vat_amt2),'999999990.00')),12,' ') || ',' ||
lpad(apt_vat_amt2,12,' ') || ',' ||
lpad(ltrim(to_char(apt_amt2,'999999990.00')),12,' ');
Text_IO.Put(out_file, str);
Text_IO.New_Line(out_file);
file is closing in after report trigger.
text_io.fclose(out_file);
now i wants to create this file on local machine.
yes using report server and its started window service.
can u have any idea? -
firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"
you have not understood my point
how does this code will run on servlet when I want to upload a file from client's
machine to server machine
what I am doing is I am giving an option to the user that he/she can browse the file and then select any file and finally it's action is post in the jsp form for which I have sent the code
All the computers are connected in LAN
So how to upload a file from client's machine to server's machine
Plz give me a solution -
Hi-
Please forgive me if this exact question has been asked already (if so I'm not finding it via Google or these forums), but one of my users can't seem to edit documents IN libraries, via links emailed to him. He clicks on the link and the
file auto-downloads with no Read-only/Edit option pop-up, and he can edit it (without getting the annoying yellow "this is read only from the server, click to edit document" bar up top either), but naturally his changes to these documents
are only being saved on his local machine and not making it back to the library.... Our IT dept gave him a Save As workaround (that, it appears, would make a SECOND file in the library, which is not going to work for our processes), but nobody
else is having this issue.... I'm thinking this is a simple settings change someplace in Sharepoint 2010 or Word 2010 (we have Windows 7), or maybe IE, or it's possible his User profile in our network needs some kind of adjustment... anyway,
any/all help appreciated. Thanks.
CFHi,
1. For automatically download the files, please check the office software settings. for word file, please open local word > file > options > save > save checked-out files to: > select "the office document cache"
2. site actions > site settings > site administration > search and offline availablity to change the settings.
3. Please compare the add-ons from this user's IE setting and the working fine IE setting.
Regards,
Seven -
Saving an xml file in local machine(urgent)
Hi Techies,
I am creating the xml file from jsp and generation of xml is working fine for me.
Now the query is How can I point out the location of local machine??
Here is my code
String locationAndBackupFileName =request.getParameter("locationAndNameOfBackupFile");
System.out.println("Location"+locationAndBackupFileName);
StringWriter stringOut = new StringWriter();
XMLSerializer serial = new XMLSerializer(stringOut, new OutputFormat("xml", "UTF-8", true));
response.setContentType("application/xml");
response.setHeader("Content-Disposition","attachement; filename="+locationAndBackupFileName);
serial.setOutputCharStream(new FileWriter(locationAndBackupFileName));
serial.serialize(document.getDocumentElement());when I xcute my code I am getting download dialog box, with save option.
But after downloading no data is available.
Can u guys help me to fix this problem
regards,
krishI don't know what you mean by "location of local machine". The response is being sent to a client machine (maybe that's your "local" machine). You have a lot of strange code that looks like it's serializing the XML to various places, but it should be serializing it to the response's output stream if you want it to go to the client.
There is no way for you, on the server, to control where on the client machine the response data will be stored. That is entirely up to the user on the client. And you certainly can't write it to the client without the knowledge and consent of the client. That's just basic network security. -
Saving any KM file in local machine
Hi All,
I have a requirment in that i have to save any KM file in my local machine from PDK application.
Please help me out.
Regards,
DeepakHi deepak,
This may be the one way through which you can copy the KM folder to the local machine.This may not be the best option but may resolve your problem.
Create a file repository in the KM content which will map to your lacal machine folder. Then you can see the local machine folder name as one of the repository in your KMcontent repository list. Then you can copy any Km folder to that repository. In this way all these folders will be available in your local machine physically.
This may resolve your problem!!!
Regards
Manisha -
Saving email message to a file
I was trying to save email messages (not just message text, but everything) into a file. But I got exception stating that com.sun.mail.pop3.POP3Message is not serializable. Is there any workaround to save email object into a file?
This writes the message as an object to a file.
It is fully functional - use this in one of my programs.
try{
email = (MimeMessage)message;
file=new File(fileName);
outFile=new FileOutputStream(file);
outStream=new ObjectOutputStream(outFile);
e.writeTo(outStream);
closeStream();
outStream.close();
outFile.close();
catch(Exception ex)
{/error writing file}
Good Luck!
jared -
How to allow user to select pdf file on local machine and populate field with file name only
Folks,
I have a project requirement that I am stumped on. I am admittedly a novice, so forgive questions that may seem obvious.
My requirement is a form running on a client system where the user can click a button and select a PDF file name from a PDF on their local machine and then populate a form field with that file path & filename. The file names vary between all machines, so there is no static list. Note that the PDF is not embedded, nothing is executed, I simply need the file name.
There are several of these on a form (20+), so manual name entry is too error prone. I would like to use a 'browse' type dialog, but can not figure out how to implement it.
I've looked at app.browseForFile, but the users can not install a javascript file in their adobe folder or any other files; the functionality has to be integral with the original PDF.
Functionally, this is no different from the image object file browse, except that I need a PDF instead of an image file, so there doesn't seem like there should be a security issue that is any different from those surrounding the image object.
I've been stumped on this for the entire week, and I have a deadline rapidly approaching, so any examples or suggestions (please remember I'm a novice) would be greatly appreciated!Thanks for the reply Paul - do you have any sample code of how to attach the PDF? Or how the user can select a PDF to open? I might be able to attach it, retrieve the file name, and then un-attach it.
Alternatively, do you know how to retrieve the file name from the imagePath object? It will let you select PDF files, but I can't find info on how to retrieve the file name. It should be the way you would retrieve the file name for an image.
As a novice in this, thanks for your help and patience! -
How to update a BLOB column in a table with a file in local machine?
I have a file (of XML type) in my local machine. I want to update it in a BLOB column of a table in databse server. Can anyone help me in this regard. Appreciate your help.
Regards
Walter Nicholasuser447427 wrote:
I have a file (of XML type) in my local machine. I want to update it in a BLOB column of a table in databse server. Can anyone help me in this regard.That's the client's job to read data on the client PC (from keyboard/mouse/scanner/file/whatever input) and submit that to the database server for processing and/or storage.
You cannot expect the server to hack into your PC and lift that data in the file from your disk. Not that is not technically possible. You can wire rockets onto a bicycle to make it go faster, but that's not a wise thing to do. Similarly, it is not a bright idea to ignore the very basics of client-server.
Bottom line - you need client s/w on your PC to load the content of that file into Oracle. It can be done using SQL*Loader as already suggested. It can be done using a web browser (submitting it via HTTP to web-enabled PL/SQL code). You can use FTP or WebDav and upload into Oracle's XDB (XML database).
Your requirements will determine what client to use. Once off load? SQL*Loader is very easy to use for loading XML files into the database. -
Creating flat file in local machine
Gurus,
My database is OLAP database, i need to extract the data into flat file (.csv/.txt/.xls) in to client machine (Local machine, or End user PC) not in to Oracle DB Server.
Is it possible to achieve the same without using UTL_FILE?
If so please help me in this regard.
Thanks in advance.
Karthik.KWhat client are you running on the PC to connect to the database
If sqlplus you can spool the output
Re: Create a file in a local PC.
Other options some of which write to the client.
http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyteflat.html -
Download file to local machine using WPG_DOCLOAD.download
Hi ,
i am using database 11g and i am trying to write to file on database server using utl_file and download to the local machine by pl/sql procedure . i am directly executing this procedure in pl/sql . i am getting ORA-06502: PL/SQL: numeric or value error when executing owa_util.mime_header ('application/vnd.ms-excel',TRUE); statement in the procedure . not sure what is happening and i am new in using these features
here is my code
CREATE OR REPLACE PROCEDURE UTL_TEST_DOWNLOAD
AS
output_file utl_file.file_type;
vexists BOOLEAN;
vfile_length NUMBER;
vblocksize NUMBER;
l_blob BLOB;
l_bfile BFILE;
BEGIN
output_file:=UTL_FILE.FOPEN('DATA_DIR', 'timesheet.csv', 'w');
UTL_FILE.PUT_LINE(output_file,'COST_CENTRE'||
'HISTORY_DATE'||
'REF_NO'||
'FIELD_NAME'||
'VALUE'||
'DATA_TYPE'||
'CHANGE_DATE'||
'INT_REF');
UTL_FILE.fclose(output_file);
UTL_FILE.FGETATTR('DATA_DIR','timesheet.csv',vexists,vfile_length,vblocksize);
IF vexists THEN
DBMS_LOB.createtemporary (l_blob, TRUE, DBMS_LOB.SESSION);
l_bfile := BFILENAME ('DATA_DIR', 'timesheet.csv');
DBMS_LOB.fileopen (l_bfile,dbms_lob.file_readonly);
DBMS_LOB.loadfromfile (l_blob, l_bfile, DBMS_LOB.getlength (l_bfile));
DBMS_LOB.fileclose (l_bfile);
owa_util.mime_header ('application/vnd.ms-excel',TRUE);
dbms_output.put_line('after owa_util' );
owa_util.http_header_close;
WPG_DOCLOAD.download_file (l_blob);
end if;
EXCEPTION
WHEN utl_file.invalid_path THEN
RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_path');
WHEN utl_file.invalid_mode THEN
RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_mode');
WHEN utl_file.invalid_filehandle THEN
RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_filehandle');
WHEN utl_file.invalid_operation THEN
RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_operation');
WHEN utl_file.read_error THEN
RAISE_APPLICATION_ERROR(-20001, 'utl_file.read_error');
WHEN utl_file.write_error THEN
RAISE_APPLICATION_ERROR(-20001, 'utl_file.write_error');
WHEN utl_file.internal_error THEN
RAISE_APPLICATION_ERROR(-20001, 'utl_file.internal_error');
WHEN OTHERS THEN
dbms_output.put_line('SQLERRM '||SQLERRM);
END UTL_TEST_DOWNLOAD
SQLERRM ORA-06502: PL/SQL: numeric or value error
The file is getting created all the time i execute this procedure i am getting the above error while executing this statement owa_util.mime_header ('application/vnd.ms-excel',TRUE);Hi,
it seems your issue is with PLSQL product so I would suggest to post your question in the PLSQL forum.
reference
PL/SQL
REgards, Roberto -
Indexing Outlook Email .eml or .msg Files
Is there a way to index index individual .eml or .msg email files, outside of the E-mail data source, such as from a custom crawler or file data source? The error thrown is:
EQG-30041: application/octet-stream: excluded by MIME type inclusion rule
Are there plans to support these files types in SES 11g?
Thanks in advance.Great news!
Of course now I must ask when 11g is scheduled for release.
Thanks. -
Generating an XML file in local machine
Hi,
I have a requirement in Oracle apps forms:
When i click a button in Oracle forms from front end, the xml file needs to be generated and saved in my local desktop in some path.
e.g C:/siva/temp.xml
I mean when we click a button in R12 applications, the file needs to be saved in my local desktop.
Please anyone suggest a way forward.Hi,
Using the Forms2XML Conversion Tool in a Java Program
You can pass the Forms2XML tool a JdapiModule Java object (class oracle.forms.jdapi.JdapiModule) and dump its objects and properties to an XMLDocument (class oracle.xml.parser.v2.XMLDocument). For example:
// get the modules in the session
JdapiIterator mods = Jdapi.getModules();
// ... and iterate round them
while(mods.hasNext())
JdapiModule mod = (JdapiModule)mods.next();
Forms2XML converter = new Forms2XML(
XMLDocument doc = converter.dumpModule(false);
Note that the Boolean argument taken by the dumpModule() method instructs converter to dump all properties to the XMLDocument doc, not just those which are overridden.
Once you have the module as a XMLDocument object, you could then use the XDK classes to manipulate it. For example, you could traverse it, remove or add objects, change properties, copy objects into other modules that are also saved as XMLDocument objects, and more—all programmatically.
Check link for more info: http://docs.oracle.com/cd/E14373_01/migrate.32/e13368/appmgr_forms.htm#CHDEBFAD
Hope it Helps!!!!
Regards,
Yuvaraj -
How to synch edited files on local machine to mobile me?
Hi,
I am trying to edit html on an iweb site and I have figured out (by reading here) how to edit the files by publishing the site to a local folder in my machine however, I don't know how to upload those changes to the mobile me. When I change the publish location on Iweb, it just reverts back to the one without my changes. Not sure if this is clear enough but if somebody has modified their html and was able to synch it to mobile me, please help me out. Thanks.Why publish to a folder on the Desktop when you can open (rather slow) the same files on iDisk.
Mount iDisk (Command-Shift-I) and navigate to :
iDisk > Web > Sites > Sitenamefolder.
And you can use [Cyberduck|http://cyberduck.ch> the same way (It's faster). Connect to MobileMe and open the folder with the file you want to edit.
Right-click the name and choose *Open with*.
I use Smultron for that purpose. It's the easiest app to use for editing HTML :
http://smultron.sourceforge.net/
And if you still want to sync, Cyberduck does it for you.
http://trac.cyberduck.ch/wiki/help/en/howto/sync
Practice with files and folder you can spare. -
How to upload file from local machine to oracle apps server.
Hi all,
Can somebody tell me how to create a OAF page to reads a window based file and writes to UNIX? (similar to FTP but using a OAF page as the interface)
Thanks in advance!!
BhupendraBhupendra
Read Developer guide"File Upload and Download" section.It shows how to use messageUploadBean.
Hope it helps!!!
Thanks
AJ
Maybe you are looking for
-
Set the compression quality for individual images for exporting a PDF?
When are export a PDF in ID, you are given an option to downsample and compress images. My problem is, I want to compress some images more than others. For example, a photo in the document could be downsampled much more than a png logo. Of course I c
-
Band of discoloration on C2D LCD
Hello, I'm having some trouble with my C2D (not santa rosa) lcd screen. I was wondering if anyone has advice or has experienced this? Early today I noticed that on the right side of my screen there was about an inch of screen that was darker or diffe
-
I have photoshop elements 12 and when I use the font tool it crashes the program, how can I fix this?I have a macbook pro
-
Premiere Pro CS4 Crashes on startup
Hey All. Iv been using premiere pro cs4 on a windows XP based machine for a while but i decided to upgrade to a new windows 7 and iv been having problems with Premiere pro. All my other programs work fine from the CS4 Production Premuim Package (well
-
Can .lrcat and .lrdata files be on different drives?
I use a MacPro. My boot drive is a 3 TB internal hard drive. My .lrdata file (LR 5) is over 275 GB because I have 1:1 previews for all of my photos. I have recently purchased a 240GB SSD which I want to use as my boot drive to increase processing tim