This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How-to Pass Images using Web services?

 
arya putra
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks,
I am using Tomcat and axis for web services.
I am taking some images using a webcam which my client program suppose to display. One of the problems am facing is how pass an Image taken by the webcam using SOAP to my client program. One possible solution that I thought of is to convert the Image to a byte array and pass it and then convert back to Image at the client side. But before doing so I would like to be sure.
Did any one handle this or similar kind of issue before? Or if someone has any other idea?
Please get back!!!
Thanks in return.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A byte array will work - note that it will be base64 encoded because some bytes can't legally be part of XML messages.
Bill
 
arya putra
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,
Thanks for getting back!!! I am a core C programmer and recently plunged to JAVA world!!! I just got this idea but I dont know how to go for it!! Any idea of any useful class which I could use for my objective!!!
Thanks a lot!!!
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Someone recently posted about having uploaded a Base64 implementation as an open source project to sourceforge.net.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic