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 » Sending Image Thru MQ using VB6.0

Post new topic  Reply to topic
 Sending Image Thru MQ using VB6.0 « View previous topic :: View next topic » 
Author Message
hunterKillerz
PostPosted: Wed Jun 16, 2010 8:58 pm    Post subject: Sending Image Thru MQ using VB6.0 Reply with quote

Apprentice

Joined: 16 Jun 2010
Posts: 40

I am working on sending image file (example: .jpg) across MQ.

What i did was read the image file to byte array with this function:

Code:

Function FileToByteArray(ByVal fName As String) As Variant

    Dim b() As Byte
    Dim n As Long
   
    n = FileLen(fName)
    ReDim b(n - 1)
   
    Open fName For Binary Access Read As #1
    Get #1, , b()
    Close #1
   
    FileToByteArray = b
   
End Function



Then try to put to a local queue (Q1) with VB6.0 application.


And try to get back the 'message' from Q1 and write it back to JPEG file.

Do you guys have any ideas to archive this?


Do i need to set .format to MQMO_NONE while putting/getting message to/from queue?

I've tried everything but It seems to fail to reform back d image file.


appreciate if anyone could help! thx in advance!
Back to top
View user's profile Send private message
hunterKillerz
PostPosted: Wed Jun 16, 2010 9:02 pm    Post subject: Reply with quote

Apprentice

Joined: 16 Jun 2010
Posts: 40

Do anyone have any ideas to get the complete byte array from queue using VB6.0? without any character conversion.?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 17, 2010 5:25 am    Post subject: Re: Sending Image Thru MQ using VB6.0 Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hunterKillerz wrote:
Do i need to set .format to MQMO_NONE while putting/getting message to/from queue?



_________________
Honesty is the best policy.
Insanity is the best defence.
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 » IBM MQ API Support » Sending Image Thru MQ using VB6.0
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.