• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting a file from datahandler

 
Angela Truce
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a mime attachment part that contains a file created using ObjectOutputStream. How do I get the file out of the datahandler so that I can use Objectinputstream to read the objects?



Thanks.
[ August 22, 2006: Message edited by: Angela Truce ]
 
Watsh Rajneesh
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have not yet checked if there is an easier way/api, but what i can think of now is: once you have the contents for the file, you can write that out to a, say, temp.ser file and then pass that temp.ser file to the ObjectInputStream. Is file creation on the local file system possible at your webservice client end?
 
Angela Truce
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I found a way to read the file! yay!

What I did was use the .getInputStream method and put this into the ObjectInputStream. The values were then read using the readObject method and then convert back to string array!

Thanks for the help anyway.
[ August 18, 2006: Message edited by: Angela Truce ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!