this works also for grails!
Add the library to your lib directory and add
<bean id="multipartResolver"
class="is.hax.spring.web.multipart.StreamingMultipartResolver">
</bean>
to your applicationContext.xml
For saving the image in a google blob i used the following functions:
@Persistent
Blob imageBlob
byte [] getImage(){
if(imageBlob){
imageBlob.getBytes()
}else{
null;
}
}
void setImage(byte [] imageBytes){
imageBlob = new Blob(imageBytes)
}
--
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 [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-appengine-java?hl=en.