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 » MQ series File Transfer.

Post new topic  Reply to topic
 MQ series File Transfer. « View previous topic :: View next topic » 
Author Message
oware
PostPosted: Mon Feb 11, 2002 9:18 am    Post subject: Reply with quote

Novice

Joined: 28 Jan 2002
Posts: 23

Hi,

I am trying to transfer .pdf file using binary read in VB and passing it over Queue. I am able to fetch the file contents from Queue and built the file on Mq series server. But when i open the file it gives message "The file is damaged and is repaired". I think there is some distortion while transfering file Over Queue. Can anyone tell what may be the problem.

Thanks in advance.

Rahul.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolban
PostPosted: Mon Feb 11, 2002 9:40 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Is the file size the same when re-written to the disk from the queue by your application? You might also set the Format field of the MQMD to MQFMT_NONE when sending. If it has been set to MQFMT_STRING, it may have been character converted.
Back to top
View user's profile Send private message
oware
PostPosted: Tue Feb 12, 2002 3:09 pm    Post subject: Reply with quote

Novice

Joined: 28 Jan 2002
Posts: 23

Hi,

Yes the filesize is same. It shows the correct size while writing to the disc.But then image or file is distorted. I tried using API calls and its working fine. But when i use activex, its give me this problem.

Would appreciate if u can throw some light onit.

Thanks.

Rahul.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
oz1ccg
PostPosted: Wed Feb 13, 2002 12:21 am    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

are you shure that all the records are in the correct order ?

Normally it's up to the application to ensure that, MQSeries don't gurantee that the records are delivered in correct order.


_________________
Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
oware
PostPosted: Wed Feb 13, 2002 7:33 am    Post subject: Reply with quote

Novice

Joined: 28 Jan 2002
Posts: 23

Hi,

My application reads a binary file into a variable which is send onto the Queue as a single message. But i am able to see only part of the file for example when i pass a .pdf file. This is done in VB application using Activex.

Thanks in advance.

Rahul.

Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
oware
PostPosted: Wed Feb 13, 2002 7:48 am    Post subject: Reply with quote

Novice

Joined: 28 Jan 2002
Posts: 23

This is the code to read a binary file and send it over to Queue.

Set MQSess = New MQSession
Set QMgr = MQSess.AccessQueueManager("queue.manager.1")

Set Queue = QMgr.AccessQueue("QUEUE2", _
MQOO_OUTPUT + MQOO_FAIL_IF_QUIESCING, "queue.manager.1")

'Putting Message on server Queue manager
Set PutMsg = MQSess.AccessMessage()
PutMsg.Format = MQFMT_NONE

Open filenamebuffer For Binary As #1 ' source

Dim readbufferlen As Long, readbuffer As String
readbufferlen = LOF(1)
readbuffer = Space(readbufferlen)
Get #1, , readbuffer

PutMsg.MessageData = readbuffer

Set PutOptions = MQSess.AccessPutMessageOptions()
PutOptions.Options = MQPMO_SYNCPOINT

Queue.Put PutMsg, PutOptions

is it correct or am i missing anything that is causing this problem.

Thanks.

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

MQSeries.net Forum Index » General IBM MQ Support » MQ series File Transfer.
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.