MQSeries.net
Search
Tech Exchange
Education
Certifications
Library
Info Center
SupportPacs
LinkedIn
Search
FAQ
 Â
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
Sending Image Thru MQ using VB6.0
«
View previous topic
::
View next topic
»
Author
Message
hunterKillerz
Posted: Wed Jun 16, 2010 8:58 pm
Post subject: Sending Image Thru MQ using VB6.0
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
hunterKillerz
Posted: Wed Jun 16, 2010 9:02 pm
Post subject:
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
Vitor
Posted: Thu Jun 17, 2010 5:25 am
Post subject: Re: Sending Image Thru MQ using VB6.0
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
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Page
1
of
1
MQSeries.net Forum Index
»
IBM MQ API Support
»
Sending Image Thru MQ using VB6.0
Jump to:
Select a forum
General Discussion
----------------
Read First for All New to IBM MQ, Integration, Messaging, WebSphere - Only Moderators Post Here
General Discussion
Messaging and Integration Technologies FAQ
News/Updates
Links
Job Seekers
Job Postings
General Forums Information
Requirements, Wishlists & Enhancement Requests
----------------
RFEs - Requirements, Wishlists & Enhancement Requests - Open Forum
IBM MQ Support
----------------
General IBM MQ Support
IBM MQ Cloud and SaaS, Cloud Hybrid and Containers
IBM MQ Installation/Configuration Support
Clustering
IBM MQ Telemetry / Low Latency Messaging / Everyplace
Mainframe, CICS, TXSeries
iSeries, OpenVMS, HP-NSS
IBM MQ Performance Monitoring
IBM MQ Security
IBM MQ Development
----------------
IBM MQ Java / JMS
IBM MQ API Support
Multiphase Commit
User Exits
WebSphere Message Broker
----------------
WebSphere Message Broker (ACE) Support
WMB Patterns Repository - Available for Download
WebSphere Application Server
----------------
WebSphere Application Server
Web Services
----------------
WebSphere DataPower
Products that use IBM MQ
----------------
Workflow Engines - IBM MQ Workflow & Business Process Choreographer
WebSphere Process Server (WID/WPS/WAS+)
WebSphere Interchange Server + Adapters
IBM MQ File Transfer Edition
Resources, Files, Samples, Archives, Misc
----------------
Files and Code Samples
Archives - All
Challenge Forum
Sponsored Forums
----------------
Cressida Technology
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.