|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Issues with PDF images - character set/encoding |
« View previous topic :: View next topic » |
Author |
Message
|
tonysab |
Posted: Mon Sep 29, 2008 2:26 am Post subject: Issues with PDF images - character set/encoding |
|
|
Newbie
Joined: 29 Sep 2008 Posts: 1
|
Hi, we are experiencing problems with reading pdf files that contain images, here is what we do -
MQ reads the file
file is picked up by a java application which writes the file out again to a local directory.
When we open the output pdf file we get errors as the image has not been translated.
This is a Windows/NT platform.
What is happening is that the pdf files contain image data which is made up of non-ascii characters. When the file is written out these characters do not translate properly and so end up as question marks and hence we get an error when trying to open the pdf file written out.
We are in the UK.
I am thinking that this is a character set/encoding problem but despite trying a multitude of different values for the character set in our java code we have not been able to fix the problem.
The java code sets the character set at the point it defines the MQ message. There are 2 parameters - encoding and characterset. These were originally set to 273 and 0 respectively. The 0 means it will take the value from the Queue Manager which is currently set to 850.
We have tried setting the value in the java code to 1252, 1208 plus a few others, without success.
What I am not clear about is whether it would make any difference re-defining the Queue Manager specifying the value there - I think that the java code overrides the setting of the queue manager but I'm not entirely sure of this.
We need to translate data which includes hex values such as '9C'.
I would be grateful for any advice/pointers.
Thanks in advance. |
|
Back to top |
|
 |
atheek |
Posted: Mon Sep 29, 2008 5:39 am Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
Your message is a mix of text and binary ( image)..rite? I think you need to supply a user conversion exit for MQ to properly translate these sort of messages .
Or are these entirely binary (pdf..?) If so do you really need to worry about translation? |
|
Back to top |
|
 |
JLRowe |
Posted: Mon Sep 29, 2008 8:19 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
From what I recall, the pdf format contains its own encoding mechanism, so you just have to treat the whole file as binary - i.e. do not translate at all. |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Sep 29, 2008 7:16 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
JLRowe wrote: |
From what I recall, the pdf format contains its own encoding mechanism, so you just have to treat the whole file as binary - i.e. do not translate at all. |
Yes. Put it into MQ with Format=MQFMT_NONE. If the queue only contains PDF messages, the MQGMO_CONVERT option becomes superfluous when getting the message. _________________ Glenn |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|