Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to upload images

 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
im new to webservices....im learning now....in my application i need to upload image using webservices....can anyone suggest me how to do...im not getting any idea regarding this matter..
 
madhuri kunchala
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any help regarding my post
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think we need more details.

Are you writing a web service? If so which toolkit if any? Which version of Java? Which operating system?

What do you have on the client side? A browser?

Why is this a web services problem and not a plain file upload?

Incidentally, waiting less than 3 hours before expressing impatience - take it easy, the people who might help you are distributed all across the globe in every time zone.

Bill
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using a web service also means that the images need to be included in the SOAP (xml) some how..

How can this be done ??

One way is to load the images into a byte array and then convert this array into a Base64String (which is a valid SOAP element).
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The RESTful approach is much simpler than SOAP for binary data.

Here is the wikipedia article which is a quick summary.

Creating a new image resource on a server would be a PUT I think.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!