ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Issues with PDF images - character set/encoding

Post new topic  Reply to topic
 Issues with PDF images - character set/encoding « View previous topic :: View next topic » 
Author Message
tonysab
PostPosted: Mon Sep 29, 2008 2:26 am    Post subject: Issues with PDF images - character set/encoding Reply with quote

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
View user's profile Send private message
atheek
PostPosted: Mon Sep 29, 2008 5:39 am    Post subject: Reply with quote

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
View user's profile Send private message
JLRowe
PostPosted: Mon Sep 29, 2008 8:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
gbaddeley
PostPosted: Mon Sep 29, 2008 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Issues with PDF images - character set/encoding
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.