Re: Problem with gwt fileUpload in GWT 2.4

2011-12-08 Thread James Drinkard
Okay, after doing more searching I found you can't do RPC with this widget, 
so I opted to create a regular httpServlet and that worked. Hope this helps 
someone!

-- 
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/-/m3JtPntBkEwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Problem with gwt fileUpload in GWT 2.4

2011-12-08 Thread karim duran
Hi James,

You can also use Apache commons fileupload library, it's easy to use and to
integrate with GWT.
http://commons.apache.org/fileupload/

Regards.

Karim Duran.

2011/12/8 James Drinkard jdrinka...@gmail.com

 Okay, after doing more searching I found you can't do RPC with this
 widget, so I opted to create a regular httpServlet and that worked. Hope
 this helps someone!

 --
 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/-/m3JtPntBkEwJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Problem with gwt fileUpload in GWT 2.4

2011-12-07 Thread James Drinkard
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.