Author |
Message
|
murdeep |
Posted: Fri Mar 09, 2012 12:03 pm Post subject: |
|
|
Master
Joined: 03 Nov 2004 Posts: 211
|
mqjeff wrote: |
There's a lot of room to call something helpful without it providing any assistance to anyone other than the poster. |
That's rich! So if it only helps the poster then it's ok. Srsly, again what's the point of posting it?
mqjeff wrote: |
There's a lot of room to call something helpful that does not provide a direct and immediate and instantaneous answer to the direct question being asked. |
Yes like RTFM or "go take a course". Which btw can be a response to almost any post on this forum.
Like Vitor himself states, 99% of his posts don't add anything worthwhile to the conversation so what's the point?
I search my issue, find a thread that's close, post that I am encountering a similar issue to that of the originator of this thread, showing my code etc that I have. I work through it utilizing help provided by others, get it resolved showing what I did and Vitor adds a snarky comment which did nothing to enhance the thread. His post was noise and I didn't appreciate it.
/rant |
|
Back to top |
|
 |
inMo |
Posted: Fri Mar 09, 2012 12:37 pm Post subject: |
|
|
 Master
Joined: 27 Jun 2009 Posts: 216 Location: NY
|
I for one vote in favor of Vitor's posts. I sometimes find myself laughing aloud at some of his responses to certain, hmm, special posts. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Mar 09, 2012 12:41 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The question is, if Vitor's post was noise, is it merely more noise to keep discussing it afterwards?
I understand that it did not generate good feelings.
I merely state that 'helpful' is a word that requires an object, that is 'helpful to *whom*'. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Mar 09, 2012 1:09 pm Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Wow. Spanky: "And how !" (The Little Rascals) I like enthusiasm and spirit. Vitor has both. For most FNGs (ie. Freshers) posting here, they need a jolt, and Vitor provides that. RTFM is appropriate. Take a class. Learn. Don't expect us to hand you your paycheck. Earn your own money. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Mar 09, 2012 4:38 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
murdeep wrote: |
mqjeff wrote: |
There's a lot of room to call something helpful that does not provide a direct and immediate and instantaneous answer to the direct question being asked. |
Yes like RTFM or "go take a course". Which btw can be a response to almost any post on this forum.
|
You forgot to include the constant advice to upgrade to the latest version of the software, when there is no reason to think an upgrade will fix it. If there is an APAR you can reference that shows its fixed in a newer version, fine. Otherwise "just upgrade" on the off chance it will fix your issue is waste of a post. Of course being on the latest version would be nice. But 99% of the time that advice is offered it is irrelevant to the problem at hand. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Mar 09, 2012 11:50 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
PeterPotkay wrote: |
You forgot to include the constant advice to upgrade to the latest version of the software, when there is no reason to think an upgrade will fix it. If there is an APAR you can reference that shows its fixed in a newer version, fine. Otherwise "just upgrade" on the off chance it will fix your issue is waste of a post. Of course being on the latest version would be nice. But 99% of the time that advice is offered it is irrelevant to the problem at hand. |
Difference as well in point of view. If you end up opening a PMR about the issue there is a very good probability that you might be asked to upgrade to the latest release first...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sat Mar 10, 2012 11:28 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
fjb_saper wrote: |
PeterPotkay wrote: |
You forgot to include the constant advice to upgrade to the latest version of the software, when there is no reason to think an upgrade will fix it. If there is an APAR you can reference that shows its fixed in a newer version, fine. Otherwise "just upgrade" on the off chance it will fix your issue is waste of a post. Of course being on the latest version would be nice. But 99% of the time that advice is offered it is irrelevant to the problem at hand. |
Difference as well in point of view. If you end up opening a PMR about the issue there is a very good probability that you might be asked to upgrade to the latest release first...  |
I always immediately push back and tell them to show me where the fix is for my issue in the version they want me to upgrade to. "Upgrade and see if the problem goes away" is lazy and hopeful on the part of the person suggesting that unless there is specific reason to believe the newer version has a fix.
I am not talking about cases where the user is running an ancient unsupported version of the software, one that the vendor never tested against the current O/S because the current O/S wasn't available back then.
If I'm running say, WMB 6.1.0.8, don't tell me to upgrade to the lastest Fix Pack unless the latest Fix Pack has a specific fix for the issue. Or worst yet, don't suggest upgrading to WMB 8. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
rekarm01 |
Posted: Sat Mar 10, 2012 3:59 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
murdeep wrote: |
I think I have a similar problem. Running WMB V6.1.0.9. |
This is not quite the same problem.
murdeep wrote: |
Code: |
-- ...
CREATE FIELD P1."Content-Transfer-Encoding" TYPE NameValue VALUE '8bit';
-- ...
CREATE FIELD P2."Content-Transfer-Encoding" TYPE NameValue VALUE 'binary';
-- ... |
|
The documentation for the EmailOutput node only lists '7bit', 'base64', and 'quoted-printable' as valid values. '8bit' and 'binary' would require SMTP servers that support SMTP extensions.
murdeep wrote: |
Now when I send this to my smtp server I get the email with the attachment but ... I notice that all my 0A's <LF> are now 0D0A's <CR><LF>. |
SMTP requires this. |
|
Back to top |
|
 |
my_mqmb |
Posted: Mon Dec 09, 2013 4:08 am Post subject: |
|
|
Voyager
Joined: 08 Jun 2011 Posts: 84
|
trying the same thing , but pdf is not opening ..
Code: |
CREATE FIELD P2."Content-Type" TYPE NameValue VALUE 'application/octet-stream; name=LCTrade.pdf';
CREATE FIELD P2."Content-Transfer-Encoding" TYPE NameValue VALUE 'base64';
CREATE LASTCHILD OF P2 TYPE Name NAME 'Data';
CREATE LASTCHILD OF P2.Data DOMAIN('BLOB') PARSE(CAST(' This is a notification from Middleware Team ' AS BLOB CCSID 1208));
SET OutputLocalEnvironment.Destination.Email.Attachment.Content = P2.Data.BLOB.BLOB;
|
any clues ? Adobe reader says it may be corrupted or format not supported.
 |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Dec 09, 2013 4:20 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
As I read your code you are :-
Trying to send an email with something that purports to be a PDF file without actually creating a file (or binary stream) that is PDF format in the first place.
If this is correct then I'd say that the Adobe PDF Reader is correct.
PLEASE PLEASE PLEASE
do not reopen old posts. Please start a new one and reference the old one. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
my_mqmb |
Posted: Mon Dec 09, 2013 4:31 am Post subject: |
|
|
Voyager
Joined: 08 Jun 2011 Posts: 84
|
smdavies99 wrote: |
As I read your code you are :-
Trying to send an email with something that purports to be a PDF file without actually creating a file (or binary stream) that is PDF format in the first place.
If this is correct then I'd say that the Adobe PDF Reader is correct.
PLEASE PLEASE PLEASE
do not reopen old posts. Please start a new one and reference the old one. |
Ok i will not reopen posts again .. i am sorry . Please can you explain how to create the stream of pdf format ?
Isnt P2.Data.BLOB.BLOB a binary stream ?
OR do you want me to start a new post first ? |
|
Back to top |
|
 |
hcinko5 |
Posted: Mon Dec 09, 2013 5:47 pm Post subject: |
|
|
 Novice
Joined: 12 Apr 2010 Posts: 21
|
|
Back to top |
|
 |
my_mqmb |
Posted: Tue Dec 10, 2013 12:00 am Post subject: |
|
|
Voyager
Joined: 08 Jun 2011 Posts: 84
|
WMB dosent support it ? what about BASE64ENCODE function ?
Cant we do it by esql ? |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Dec 10, 2013 12:08 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
PDF is probably a Binary object but with a specific format. Like a .zip files is binary but it has a format.
Not a lot to do with BASE64ENCODE really.
I just loaded a PDF file into 'rfhutil' and looked at the data.
It starts with '%PDF-1.2'
I suggest that you try this your self and see.
So as has already been said, you need to convert the text to PDF using one of the many java libraries available before putting into an email
Not that difficult to do really. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Dec 10, 2013 5:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
my_mqmb wrote: |
WMB dosent support it ? what about BASE64ENCODE function ? |
What about it? A PDF document is not a base64 encoded string, it's a PDF document. In the same way (as has been stated) a zipped archive is not a base64 encoded string.
my_mqmb wrote: |
Cant we do it by esql ? |
Probably. You'd need to write 1-n lines of code to achieve it; there's no PDFENCODE function like there's a BASE64ENCODE function. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|