| Author | Message | 
		
		  | xtreme_machine | 
			  
				|  Posted: Tue Sep 18, 2007 7:19 pm    Post subject: send pdf / pics through MQ |   |  | 
		
		  | Novice
 
 
 Joined: 17 Sep 2007Posts: 23
 
 
 | 
			  
				| Hi Experts, 
 MQ really facinates me... being new , the question may be vague .. but will definitely help me in along way to understand MQ better...
 
 I want to send a PDF..or say a jpef file through MQ. how is it possible... what changes needs to be done on the sending and the receiing side...
 
 is there any facilty in MQ where i can attach a file....and send it across through amqsput
 
 thx
 XM
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Nigelg | 
			  
				|  Posted: Tue Sep 18, 2007 8:40 pm    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 02 Aug 2004Posts: 1046
 
 
 | 
			  
				| Put the msg with Format MQFMT_NONE. 
 Also, reference msgs can send files over a channel. There is a sample app which does this.
 _________________
 MQSeries.net helps those who help themselves..
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | xtreme_machine | 
			  
				|  Posted: Tue Sep 18, 2007 9:13 pm    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 17 Sep 2007Posts: 23
 
 
 | 
			  
				| thanks for your reply..... 
 but isnt  there any way that i can attach a file from amqsput command....
 my question is from administrator point of view ....
 
 
 thx
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Tue Sep 18, 2007 10:34 pm    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| 
   
	| xtreme_machine wrote: |  
	| but isnt  there any way that i can attach a file from amqsput command.... |  
 amqsput is not a command, it's a piece of sample code. As delivered it takes a string of 100 bytes and sends it, so is unsuitable for your needs.
 
 Either use it as a template for an application designed as Nigelg suggests, or purchase a file-over-MQ solution like PM4DATA.
 
 (No endorsement intended, other file moving products are available, etc, etc).
 _________________
 Honesty is the best policy.
 Insanity is the best defence.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | xtreme_machine | 
			  
				|  Posted: Tue Sep 18, 2007 11:24 pm    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 17 Sep 2007Posts: 23
 
 
 | 
			  
				| hi vitor, 
 thx for the pointer . ..but i wonder how the receving appln will be able to read the data...../ validate the file... what are the changes/conf required on the receiving appln... how will be they able to view the pdf/pic file sent over MQ ...
 
 thx
 xm
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Tue Sep 18, 2007 11:58 pm    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| 
   
	| xtreme_machine wrote: |  
	| thx for the pointer . ..but i wonder how the receving appln will be able to read the data...../ validate the file... what are the changes/conf required on the receiving appln... how will be they able to view the pdf/pic file sent over MQ ... 
 |  
 If you purchase PM4DATA (or similar, see above) then the file will be delivered into the target file system, if so configured (and I expect in this instance you would). PM4DATA does have the ability to turn files into messages but that wouldn't make sense in your requirement.
 
 If you write an application as suggested to transfer the file over MQ, obviously you'd need a matching application (presumably based on amqsget) to read it off and write it to the file system.
 
 In both instances you'd view it with the software of your choice.
 _________________
 Honesty is the best policy.
 Insanity is the best defence.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Wed Sep 19, 2007 12:05 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| If you want more information, may I unreservedly recommend this page on Roger's site: 
 http://www.capitalware.biz/mqseries.html
 
 You'll find a list of the commerical software available for WMQ (including file transfer software), as well as a host of other useful links.
 _________________
 Honesty is the best policy.
 Insanity is the best defence.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | xtreme_machine | 
			  
				|  Posted: Wed Sep 19, 2007 12:19 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 17 Sep 2007Posts: 23
 
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | zpat | 
			  
				|  Posted: Wed Sep 19, 2007 2:24 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 19 May 2001Posts: 5867
 Location: UK
 
 | 
			  
				| Another is to convert the file to character representation (eg BASE64) and include it as part of a string message. 
 Also look at reference messages which allow the transportation of files by the queue managers.
 
 Finally there is a simple file transfer interface supplied as part of MQ.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |