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 » How trasfer files in a MQseries message?

Post new topic  Reply to topic
 How trasfer files in a MQseries message? « View previous topic :: View next topic » 
Author Message
tecnologiai
PostPosted: Fri May 28, 2004 12:13 am    Post subject: How trasfer files in a MQseries message? Reply with quote

Newbie

Joined: 28 May 2004
Posts: 4

How trasfer files in/with a MQseries message? (Attach file to message)
Back to top
View user's profile Send private message
jed
PostPosted: Fri May 28, 2004 12:23 am    Post subject: Reply with quote

Centurion

Joined: 08 Jan 2004
Posts: 118
Location: MI, USA

well.... what programming language u going to use?
as per experience, C/C++ and Java can handle files and put in as a message in a queue.
_________________
Jed
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
tecnologiai
PostPosted: Fri May 28, 2004 12:48 am    Post subject: Trasfer files in MQseries message Reply with quote

Newbie

Joined: 28 May 2004
Posts: 4

Hello, I use Java to send and read text messages, but now I need trasfer(atach) files in messages.
Do you speak spanish?

Thanks.


jesus_dino wrote:
well.... what programming language u going to use?
as per experience, C/C++ and Java can handle files and put in as a message in a queue.
Back to top
View user's profile Send private message
jed
PostPosted: Fri May 28, 2004 12:54 am    Post subject: Reply with quote

Centurion

Joined: 08 Jan 2004
Posts: 118
Location: MI, USA

i think you should try to open the file like an input stream and use it to write and put into the queue.

i do speak spanish......
_________________
Jed
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
tecnologiai
PostPosted: Fri May 28, 2004 1:02 am    Post subject: Reply with quote

Newbie

Joined: 28 May 2004
Posts: 4

Yes I can do this, but the file have diferent formats (xml, txt, doc, pdf). Can I attach the file to message? Like a email witch attach files.


jesus_dino wrote:
i think you should try to open the file like an input stream and use it to write and put into the queue.

i do speak spanish......
Back to top
View user's profile Send private message
jed
PostPosted: Fri May 28, 2004 1:05 am    Post subject: Reply with quote

Centurion

Joined: 08 Jan 2004
Posts: 118
Location: MI, USA

nope, you cannot attach a file in a message.
you need to read the file byte by byte (or use the filestream of java) before you put it as a message in the queue.
and do the reverse when you want to read the message in the queue.

this will work on any type of file.....
i was able to do this using C/C++ and also JAVA.
read a file, put it into the queue and retrieve the message and re-construct the file.
_________________
Jed
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
tecnologiai
PostPosted: Fri May 28, 2004 1:13 am    Post subject: Reply with quote

Newbie

Joined: 28 May 2004
Posts: 4

Thanks.

I do this, the message can be a text message?.
Dou you have any code in java?


jesus_dino wrote:
nope, you cannot attach a file in a message.
you need to read the file byte by byte (or use the filestream of java) before you put it as a message in the queue.
and do the reverse when you want to read the message in the queue.

this will work on any type of file.....
i was able to do this using C/C++ and also JAVA.
read a file, put it into the queue and retrieve the message and re-construct the file.
Back to top
View user's profile Send private message
zpat
PostPosted: Fri May 28, 2004 3:51 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

You can read the file into the message and write it out again. There is also the option of "reference messages" where the queue manager will perform the file i/o for you at each end.

There are several software products which offer FTP over MQ, and I think some free MQ support pacs have a basic offering.

http://www.primeur.com/products/xsp/xsp.html
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 » How trasfer files in a MQseries message?
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.