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 » IBM MQ API Support » Large file putting to a queue

Post new topic  Reply to topic
 Large file putting to a queue « View previous topic :: View next topic » 
Author Message
megani
PostPosted: Fri Aug 01, 2003 10:00 am    Post subject: Large file putting to a queue Reply with quote

Apprentice

Joined: 19 Dec 2001
Posts: 27

Does anyone know of a DOS utility that I can use (like amqsputc) that will take a large file and put it to a queue as just one message.
When I do this with amqsputc each line of the file is a separate message.

Thank you
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 01, 2003 10:43 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The source code for amqputc is supplied with MQSeries. You could modify it to suit your own needs.

Or you could look at the top of this page, and see if something in the Repository will suit your needs.
Back to top
View user's profile Send private message
bduncan
PostPosted: Fri Aug 01, 2003 12:19 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Plus amqputc won't deal with binary files properly. I've written utilities to do this sort of thing in the past (transferring jpeg images via MQSeries) and it's not that tough... just read the bytes of the file into the message buffer and fire away... But instead of sending it all in one message, it might be useful to break it into multiple messages that are all part of a group. This way, the first (or last) message can contain information about the file, like the filename, permissions, size, etc...
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Leafar
PostPosted: Wed Aug 13, 2003 8:40 am    Post subject: Reply with quote

Acolyte

Joined: 03 Apr 2003
Posts: 74
Location: Buenos Aires

If you still have this problem, take a look at

http://www.capitalware.biz/unix_general.html

file2msg.c

I've transferrin 15MB in pdf files and worked

Saludos
Rafael
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Large file putting to a queue
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.