Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Whether Inputstream can be parameter of web service  RSS feed

 
guo deke
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice to meet everybody. I want to develop a web service, and use a Inputstream object as one parameter. I have spent more time, but havn't found the correct solution. Can anybody give me some idea, Thanks .
 
Mattias Arthursson
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the communication with a web service is handled using XML documents I would think it impossible to have an InputStream as a parameter. I think you need to extract the data from the InputStream to a buffer (e.g. a byte array) and then construct a new InputStream on this parameter on the server side.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!