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 » File transfers using FTA

Post new topic  Reply to topic
 File transfers using FTA « View previous topic :: View next topic » 
Author Message
cescobar
PostPosted: Mon Apr 02, 2007 8:11 am    Post subject: File transfers using FTA Reply with quote

Newbie

Joined: 02 Apr 2007
Posts: 3
Location: Santiago, Chile

Hello people:

Is there an API that can act like the File Transfer Agent which i can use to include file transfering in my applications whithout the need to use external programs?

edit: I meant an API for C/C++/Java or another language, I'd prefer to have it in C++ since our apps are written in C++

thanks

Carlos
_________________
There are 10 types of people...
...those who understand binary...
...and those who don't.

--"I'm the 3rd!! yay!"
Back to top
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Mon Apr 02, 2007 11:48 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

MQ is not really a "file transfer" system. It's a messaging system.

It's much better for your programs to write messages directly to MQ than to write them to files, and then have to try and move the files.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
cescobar
PostPosted: Mon Apr 02, 2007 12:37 pm    Post subject: Reply with quote

Newbie

Joined: 02 Apr 2007
Posts: 3
Location: Santiago, Chile

well jeff, i know that, but i also know that if you combine the reasonably powerful security of MQ you can get a very secure file transfer system, specially when MQ is your only option for communications, the problem is a special netadmin who won't allow us to use ftp across the network in which we are coding our programs, so there's not much of a choice there, and if i was to write binary data messages how can i then transport them back to a file?
_________________
There are 10 types of people...
...those who understand binary...
...and those who don't.

--"I'm the 3rd!! yay!"
Back to top
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Mon Apr 02, 2007 12:44 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Message data is just a big long buffer of data. That data can be written to a file or read from a file without regard for whether the data is binary, or text. One just needs to indicate that the message data should be treated as string data if it's text, or not treated as string data if it's not. MQFMT_STRING or MQFMT_NONE, basically.

Also, MQ does have a reasonably good set of security for certain things... but it may not be sufficient for a full scale Enterprise File Transfer system. I'm not saying "don't use MQ to move files", I'm just saying "make sure you know what your actual requirements for moving files is, first".

The presupplied file transfer program that comes with MQ does things like automatically segment files into smaller messages and reassemble messages into a larger file. It does a few other things that you'll otherwise have to write yourself.

There is not a presupplied API, nor sample code, AFAIK that you can include or use in your program to accomplish all the same things. You'll have to write it by hand - or use system()...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
cescobar
PostPosted: Mon Apr 02, 2007 1:00 pm    Post subject: Reply with quote

Newbie

Joined: 02 Apr 2007
Posts: 3
Location: Santiago, Chile

well guess what, that solved it, thanks a lot jeff, didn't know exactly what the mqfmt thingy was doing and well, it was taking the binary data and passing it as string, so there it must have been losing some special chars
_________________
There are 10 types of people...
...those who understand binary...
...and those who don't.

--"I'm the 3rd!! yay!"
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 » File transfers using FTA
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.