Mail to File: Use filename from MailBody to store attachement on filesystem
Hi
I have a Mail to File scenario. The mail contains a body and one binary attachment. The goal is to store the binary attachment on the filesystem with a specific filename which should come from the mail body.
So I have to use PayloadSwapBean to have the attachment. But after this I can't access the mail body through a mapping to store the filename from the body content in DynamicConfiguraton (Adapter Specific Message Properties).
How can I transport the filename from the mail body from the mail sender adapter to the file receiver adapter? Is this only possible with an self-written adapter module?
Thx
manuku
> In the meantime I found a very easy solution (without adapter module). The solution was to switch the PayloadSwapBean from the MailSenderAdatper to the FileReceiverAdapter. Due to this small change the mail content was as normal payload present for eg. message mapping. So I was able to use the dynamic configuration to generate the dynamic filename.
Hi Tobias,
I should read the requirements more carefully. You wanted the filename from payload, I gave you a solution for reading the attachment name of the mail
Cheers
Stefan
Similar Messages
-
Read an avi file using "Read from binary file" vi
My question is how to read an avi file using "Read from binary file" vi .
My objective is to create a series of small avi files by using IMAQ AVI write frame with mpeg-4 codec of 2 second long (so 40 frames in each file with 20 fps ) and then send them one by one so as to create a stream of video. The image are grabbed from USB camera. If I read those frames using IMAQ AVI read frame then compression advantage would be lost so I want to read the whole file itself.
I read the avi file using "Read from binary file" with unsigned 8 bit data format and then sent to remote end and save it and then display it, however it didnt work. I later found that if I read an image file using "Read from binary file" with unsigned 8 bit data format and save it in local computer itself , the format would be changed and it would be unrecognizable. Am I doing wrong by reading the file in unsined 8 bit integer format or should I have used any other data types.
I am using Labview 8.5 and Labview vision development module and vision acquisition module 8.5
Your help would be highly appreciated.
Thank you.
Solved!
Go to Solution.
Attachments:
read avi file in other data format.JPG 26 KBHello,
Check out the (full) help message for "write to binary file"
The "prepend array or string size" input defaults to true, so in your example the data written to the file will have array size information added at the beginning and your output file will be (four bytes) longer than your input file. Wire a False constant to "prepend array or string size" to prevent this happening.
Rod.
Message Edited by Rod on 10-14-2008 02:43 PM -
Creating XML file using data from database table
I have to create an xml file using the data from multiple table. The problem That i am facing is the data is huge it is in millions so I was wondering that is there any efective way of creating such an xml file.
It would be great if you can suggest some approach to achieve my requirement.
Thanks,
-VinodAn example from the forum: Re: How to generate xml file from database table
Edited by: Marco Gralike on Oct 18, 2012 9:41 PM -
Need to send mail & upload files using JSP
hi, got a lot of issues,.. just starting out as a developer.. so here goes.
1st Need to send mail & upload files to server using JSP(tomcat).. an example to demo it would be nice.
thanx in advanceLook at this for email:
http://forum.java.sun.com/thread.jspa?forumID=45&threadID=285950
and go to:
http://servlets.com/cos/
for a package to upload files. -
Deploy EAR file to OC4J from PL/SQL Store Procedure
Hi
Can you deploy an EAR File from PL/SQL Store Procedure?
are there any API'S to achieve that?
Thanks.Customer has an IAS 10.1.3 Environment with multiple OC4J's for different projects.
We would like to allow each Project Team to be able to perform deployment on their own.
Problem is, that we want to be able to control which OC4J Container each project team can deploy to and restrict them from creating into other containers.
Although IAS 10.1.3 does allow you to define different users and groups, it doesnt allow you to restrict a user/group into one specific OC4J.
This is a big problem for customer and in the quest of searching some Creative Solutions, we wanted to try and create a simple Web UI (i.e, in APEX) that will allow customer to
upload new EAR (or WAR) file and it will deploy it to their container automatically.
to achieve this, we need to find (easy) way to deploy files from PL/SQL.
we can always use external pl/sql procedure that run a Shell Script which does this,
but customer is searching for a more "direct" way to do this.
any suggestions on this issue? -
Can I use apps from foreign app store on my iPad?
Hi guys,
I apologise if this has been answered before. I would like to use apps from a foreign iTunes store on my iPad and wondered if anyone could help me with that.
We live in Australia and I want my kids to learn German as well, so I thought it would be really nice to download a few educational apps from the German iTunes store for them. I have an Australian and a German iTunes account and once I changed my apple ID in the store preferences on my iPad I can download German apps without a problem. The trouble is now that from the two apps I downloaded one changed to english and the other one doesnt open at all.
Do you have any suggestions how I could get this to work?
Thanks
AlexAs long as you are using the App store > link under Software update under the Apple on the menu bar if it's not already on your Dock..( or LaunchPad )...Yes.
Using iTunes Store for Apps No, they are only for iOS ie, iPads iPhones, iPod Touches etc.
S. -
How to open saved files using 'read from text file' function
Hi everyone, I am having a hard time trying to solve the this particular problem ( probably because I am a newb to lanbview ). Anyway , I am able to save the acquired waveforms by using the 'Write to text file' icon. I did manually modify the block diagram of the 'Write to text file' icon and create the correct number of connector so as to make my program work. But now I have no idea on how to modify the block diagram of the 'Read from text file' block diagram to make my program 'open' my saved waveforms. Or i do not have to modify anything from the block diagram of the 'Read from text file'? Can anyone teach/help me connect up? Do i need the build array on the "open" page?
Here are some screenshots on part of my program
let me know if you guys would need more information / screenshots thank you!
Attachments:
ss_save.jpg 94 KB
ss_open.jpg 94 KB
modified_writetotextfile.jpg 99 KBOhmy, thanks altenbach. oh yeah i forgot about those sub VIs. will upload them now. Was rather demoralized after reading the comments and really struck me on how weak i'm at on labview really hope to get this done. But of course i have to study through and see how it works. Actually i am going to replace those 'signal generators sub vi' with ThoughtTechonology's sample code so i can obtain data waveforms real-time using Electrocardiography (ECG) ,Electromyography (EMG ) and Electroencephalography (EEG) hopefully i can find out how to connect the sample code.
( ps . cant connect it now unless my program is working otherwise labview will crash )
( p.s.s the encoder of my biofeedback trainer already acts as an DAQ so i wont need to place an DAQ assistant in my block diagram i suppose )
The sample code of ThoughtTechnology is named as attachment.ashx.vi. too bad i cant use it and present it as my project
Attachments:
frequency detactor.vi 53 KB
signal generator.vi 13 KB
attachment.ashx.vi 40 KB -
Transfer files using FTP from one r/3 server to another on windows platform
Hi ,
I am trying to transfer a text file from one r/3 server to another
this should be done using ftp.
I am working on widows OS & i have tried all the RSFTP* pgm's none satisfy my req. please tell proper method to do so or if any pgm please tell properly.
Regards,
Prateek KumarIf you haven't figured the migration out already, you may want to check out this thread:
http://discussions.info.apple.com/thread.jspa?threadID=2205892
It looks like the path to take from everything I'm seeing, but if you've found a friendlier solution I'd be happy to give it a shot! -
I restarted my itouch using the home button and top button...it restarted but it only shows the apple logo and that is it. I deleted all files from ifile and then it froze... any ideas of how to make it work again?
Discussions of hacked ipods is not permitted here.
-
Windows File Sharing - Unable to copy/see files using MacBook from XP PC
I've trawled the internet for an answer to this and tried hundreds of little tweaks but all to not avail, so I'm here.
I've set up two shared folders using simple file sharing on a Windows XP (SP3) laptop. They have been given read/write permissions and were setup using an Administrator account (the only account).
Using Finder on my MacBook I can connect to the XP laptop and can see the shared folders. However, when I try to copy any file from the XP laptop's shared folders to my Macbook, it encounters an error (something about not having sufficient permissions). Also, if there are subfolders inside the main shared folder then I cannot see the individual files inside these subfolders.
I've tried using the XP laptop with and without a password, have disabled all anti-virus software (including Windows Firewall) and yet it still won't work.
After multiple restarts and changing options on both my MacBook and the XP laptop the same problem persits. Any light that can be shed would be most appreciated.Hi - Did you ever get this resolved? I'm having pretty much the same issue!
Thanks,
Jacki -
** How to deliver multiple files using BPM (From RFC output)
Hi Friends,
I am doing File-RFC-File scenario using BPM. I am using BAPI_SFLIGHT_GETLIST as my RFC (Standard RFC). If we execute this RFC, it will return the results in tables form. Assume that, the inputs to RFC is like below.
FromCountryKey : US
FromCity: NEW YORK
ToCountryKey: DE
ToCity: FRANKFURT.
The outputs from the RFC is like below.
26 Entries
CAR
CONN
FLDATE
AIR
AIR
DEPTIME
SEATSMAX
SEATSOCC
|
DL
0106
19.05.2008
JFK
FRA
19:35:00
280
266
UA
3516
20.05.2008
JFK
FRA
16:20:00
380
364
LH
0401
23.05.2008
JFK
FRA
18:30:00
220
209
LH
0401
28.05.2008
JFK
FRA
18:30:00
220
208
UA
3516
28.05.2008
JFK
FRA
16:20:00
380
367
DL
0106
16.06.2008
JFK
FRA
19:35:00
280
261
UA
3516
17.06.2008
JFK
FRA
16:20:00
380
357
LH
0401
20.06.2008
JFK
FRA
18:30:00
220
213
DL
0106
14.07.2008
JFK
FRA
19:35:00
280
1
UA
3516
15.07.2008
JFK
FRA
16:20:00
380
86
LH
0401
18.07.2008
JFK
FRA
18:30:00
220
123
DL
0106
11.08.2008
JFK
FRA
19:35:00
280
56
UA
3516
12.08.2008
JFK
FRA
16:20:00
380
67
LH
0401
15.08.2008
JFK
FRA
18:30:00
220
114
DL
0106
08.09.2008
JFK
FRA
19:35:00
280
0
UA
3516
09.09.2008
JFK
FRA
16:20:00
380
164
LH
0401
12.09.2008
JFK
FRA
18:30:00
220
64
DL
0106
06.10.2008
JFK
FRA
19:35:00
280
80
UA
3516
07.10.2008
JFK
FRA
16:20:00
380
8
LH
0401
10.10.2008
JFK
FRA
18:30:00
220
16
DL
0106
03.11.2008
JFK
FRA
19:35:00
280
11
UA
3516
04.11.2008
JFK
FRA
16:20:00
380
33
LH
0401
07.11.2008
JFK
FRA
18:30:00
220
53
DL
0106
01.12.2008
JFK
FRA
19:35:00
280
0
UA
3516
02.12.2008
JFK
FRA
16:20:00
380
45
LH
0401
05.12.2008
JFK
FRA
18:30:00
220
25
|
We need to create output file for each record. In this case, the system should generate 26 output files.
I imported the RFC and created the required interfaces and designed BPM also.
Start --> Receive step --> Synchronous Send --> Asynchronous Send
But, I stuck in how to deliver each record to the output file from BPM.
Any idea, friends. (like using BPM Multi-line option. or 'Receiver From' property in the Send Step)
Kindly help me friends to solve this issue.
Thanking you.
Kind Regards,
Jeg P.Hi
You can do it by creating one another message interface having structure same as your table.
What you have to do is create a mapping in such a way that for each record in table one message(newly created) must be created.
Use that mapping in an interface mapping, remember occurence of target message should be 0..Unbounded both in message mapping and interface mapping.
Now create one single line message and one multiline message in BPM for newly created message.Use transformation step with new interface mapping, mention source(RFC response) and target message(use multiline element of new message) for the transformation step.
Use send step inside a block,set block mode to "forEach", and attach new message to that send step.
Use multiline and single element of new message in the property window of block.
Now your BPM will look like
Start ---> Receiver ---> Synchronous send ---> Transformation ---> Block ---> Async Send(within block)
I think in this way you can implement what you want.
Regards
Sami
Reward points if helpful. -
Printing a password protected PDF file using acroread from Unix?
We installed v8.1.3 acroread on the server but we are unable to print a password protected PDF file from command line in Unix? <br /><br />cat <passprotected>.PDF | /usr/bin/acroread -toPostScript | lp -dprinter<br /><br />we get the following error<br /><br />"lp: Error - stdin is empty, so no job has been sent."<br /><br />Please advice <br /><br />Thank you in advance.<br />MSUDHAN.
Hello,<br /><br />If the pdf file has a doc open password or if printing is disallowed you will not be able to print it using the commandline.<br /><br />Any other pdf can be printed using the same command :<br />cat a.pdf | acroread -toPostScript | lp -d <printer><br /><br />Regards,<br /> Rishi
-
Load xml file using gerResource() from a class in jar
Hi,
I have a jar file. I set the classpath for the jar.
I have an xml file in the directory of jar.
ex: /example/test.jar (jar file)
/example/test/test.xml
I would like to load the xml file by using a class in the jar file like:
URL url = Test.class.getResource("/example/test/test.xml");
Test.class is in the jar.
But it is not loading and giving URL as null.
I couldnot figure out how to load any file outside of the jar file from a class file in the jar.
Any solution can be appreciated.
Thanx in advance.
SridharTry
URL url = ClassLoader.getSystemResource ("/example/test/test.xml"); -
Unable to build dimension thru rule file using export from DRM
Hi All,
I exported a dimension from DRM in parent-child format and trying to load it thru rule-file into essbase. Everytime i load the data..it is throwing error. Iam confused whether the error is due to DRM file or Essbase itself?
Actually i wanted to show the client the syncup between DRM and Essbase, this is kind of POC. I created an ESSbase application and using outline extractor, extracted the individual dimensions and then converted it into DRM import and loaded there successful. After creation of Properties there and added few members under the hierarchy in DRM.Again exported the dimensions and wanted to load into the same Essbase Application which should reflect the member additions did in DRM. But this DRM to essbase thing is not happening.
Pls anybody help me in this.
Regards,
SahityaHi,
Is there anything in the error log file that is generated when you load it in Essbase??
You got to find the reason in the error file and then we can help you out on this.
Thanks,
Sourabh -
Transfer files using Bluetooth from non black berry phones
I am not able to transfer any files from the nokia phone to playbook or vice versa using blue tooth,
Please help me to do same,
Is this option is available with bb playbook
or just we can do the internet tethering with Bluetooth ?
Rana AmitThe limitations of the PlayBook are simply unbelievable. Bluetooth file transfer is something I'm used to having and using since the first mobile phone I got, nearly 10 years ago. I guess this is one more "security feature" of the PlayBook. No brains, no tumors, as they say.
Fail.
http://eir3.com
Maybe you are looking for
-
HT204053 How do I delete credit card off account so I can still download free apps
How do I delete credit card off account so I can still download free apps
-
Laserjet P1102w & Mac Wireless Woes (Have tried everything​!)
Feels like I have tried everything, so I turn to here. Installing (reinstalling, actually) a P1102w on a Macbook running Leopard. I had this printer working beautifully a year and a half ago, no problems whatever. Changed the network name, everything
-
Dynamic Creation of UI Elements
Hi, Can anyone help me to create a DropDownByIndex and CheckBox dynamically in the Implementation tab of a View. Also I am not able to insert values into the dropdown. If someone send the code it would be very helpful Thanks Kalyan
-
How to sort files in a PDF binder by date4
I created a portfolio for my paycheck stubs I would like them sorted by date, in reverse, meaning the latest date appears first I cannot drag them into the order I want. Why can I not drag files? I tried renaming all the files with numbers so they ap
-
Portal 309 does not work ...
gurus, i've installed 9iAS 10220 on windows 2000 with 817 database. i have the following problems - 1. apache would crash in couple of seconds after etting started - fixed it by commenting the following in oracle_apache.conf - # include "D:\ORACLE\or