Hello All,
I have a requirement to get a file, upload it to the server and then get 
the stream of bytes back in some server-side code.  I have to pass an 
inputStream from the file to a calculator module.  So I opted to use the 
fileUpload widget which appears to work fine on the client-side.  I see the 
post on the form.submit, so it appears that the file went to the server.  I 
then use an RPC service call to try and pull the file stream off the 
server.  I use an serviceImpl servlet (extends RemoteServiceServlet) and I 
try to pull the stream back with this line of code in the servlet:  
*inputStream = request.getInputStream();*

However, it doesn't appear that I'm getting anything back at all.  Is this 
doable and is this the correct approach?  I've done lots of RPC calls, so 
that is what I thought was the right way to do this, but now I'm not sure.  
I've never worked with the fileUpload widget before and opted to use it 
over the GWTUploader widget as a simpler, fast solution.  

Any ideas as to how to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/HTOyWc4IqSsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to