Hi You need the jar file, you can download it from: http://cloud.github.com/downloads/pjesi/springextras/springextras-1.1.jar
Hope that helps, Viðar 2010/2/1 java <rohit82.j...@gmail.com>: > Hello > > I am also using spring with appengine & I want to store a image into > datastore. I have written same code > <bean id="multipartResolver" > > class="is.hax.spring.web.multipart.StreamingMultipartResolver"> > </bean> > > But when I compile then I got error "java.lang.ClassNotFoundException: > is.hax.spring.web.multipart.StreamingMultipartResolver" what I should > do??? > > Thanks in advance > > > On Jul 5 2009, 2:06 pm, Viðar Svansson <vidarsv...@gmail.com> wrote: >> Hi >> Here is my configuration using StreamingMultipartResolver in my AppEngine >> MVC application. >> >> In my servlet context file: >> >> <bean id="multipartResolver" >> class="is.hax.spring.web.multipart.StreamingMultipartResolver"> >> </bean> >> >> Then in my model: >> >> private MultipartFile picture; >> // getters and setters >> >> And finally in the contoller: >> >> public String uploadPicture(@ModelAttribute("picture") Picture picture) >> { >> MultipartFile file = picture.getPicture(); >> byte[] rawData = file.getBytes(); >> // ... >> >> Hope this helps. >> Viðar >> >> On Thu, Jul 2, 2009 at 11:30 PM, zee <zenma...@gmail.com> wrote: >> >> > Is there any example on how to use StreamingMultipartResolver in >> > Spring MVC based web application >> > (actually grails) like sample xml file configuration settings to >> > override default spring behaviour? >> >> > I am facing the same problem using google app engine because the >> > framework based on Spring MVC >> > uses spring file uploads for multipart form requests. >> >> > On Jun 25, 5:45 pm, Viðar Svansson <vidarsv...@gmail.com> wrote: >> > > Hi >> > > Check outhttp://github.com/pjesi/springextras >> >> > > You can use is.hax.spring.web.multipart.StreamingMultipartResolver >> > > I am still working on this so watch for updates. >> >> > > Cheers, >> > > Viðar >> >> > > On Mon, Jun 22, 2009 at 5:06 AM, hu <itswa...@gmail.com> wrote: >> > > > i got problem when upload file with MVC, and i wanna to know how did u >> > > > implement this ? >> >> > > > On May 13, 5:05 am, pjesi <vidarsv...@gmail.com> wrote: >> > > > > Hi >> >> > > > > CommonsMultipartResolver does write to the filesystem, which is not >> > > > > what Google wants. I'm working on a special MultipartResolver for the >> > > > > appengine to resolve this issue. Let me know if you are interested. >> >> > > > > Cheers >> > > > > Viðar >> >> > > > > On Apr 20, 9:25 pm, Arjan <huij...@gmail.com> wrote: >> >> > > > > > Hi all, >> >> > > > > > I am creating a form that allows the user touploadan image. I use >> > > > > > Spring MVC. I have configured the mulipart resolved as follows: >> >> > > > > > <bean id="multipartResolver" >> >> > class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> >> > > > > > <property name="maxUploadSize" value="2000000" /> >> > > > > > </bean> >> >> > > > > > However, this results in an exception because it tries to write a >> > temp >> > > > > > file. I know the Commons FileUploadlibrary used support streaming >> > > > > > without actually creating a temp file. Can someome tell me how I >> > can >> > > > > > configure this in Spring MVC? >> >> > > > > > Thanks in advance! >> >> > > > > > Arjan >> >> -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.