I have the same code in both GAE environment and regular java (both are in the 
servlet level).  It ran file in regular java but in GAE, I'm getting a http 500 
error for org.apache.commons.fileupload.FileUploadException.  It is giving me:


java.lang.NoClassDefFoundError: 
org/apache/commons/fileupload/FileUploadException
Even though I import it and add the JAR to my project (both GAE's and regular).

Jaroslav - yes, I'm using those instead now.  Was reading up on Blobstore and 
how it work yesterday and going that route instead.

Thanks!




________________________________
From: Jeff Schwartz <[email protected]>
To: [email protected]
Sent: Mon, August 9, 2010 6:08:50 PM
Subject: Re: [google-appengine] working with Images

Apache's file upload library is not blacklisted and works just fine on 
appengine. Just use it in your servlet and it will work as expected. There are 
number of resource you can Google/search for that will allow you to cut and 
paste the code into your servlet.


2010/8/9 Jaroslav Záruba <[email protected]>

damn
>
>
>I'm not telling Apache's fileupload is forbidden (I believe so nevertheless) 
>but 
>take a look at BlobstoreService.createUploadUrl(successPath) and 
>BlobstoreService.getUploadedBlobs(request).
>You will get your data uploaded into Blobstore/Datastore, and getUploadedBlobs 
>gives you reference to it.
>
>
>2010/8/10 Jaroslav Záruba <[email protected]>
>
>
>I'm not telling Apache's fileupload is forbidden (I believe so nevertheless) 
>but 
>take a look at BlobstoreService.createUploadUrl(successPath) and 
>BlobstoreService.getUploadedBlobs(request).Blobstore/Datastore and reference 
>to 
>it.
>>
>>
>>On Tue, Aug 10, 2010 at 2:38 AM, Julie <[email protected]> wrote:
>>
>>Interesting!  Thanks for the info.  I'm looking into it.
>>>
>>>I was also having issues trying to get org.apache.commons.fileupload to work 
>>>with GAE so this might solve both of my problems.
>>>
>>>
>>>
>>>
________________________________
From: Jaroslav Záruba <[email protected]>
>>>To: [email protected]
>>>Sent: Mon, August 9, 2010 5:26:55 PM
>>>Subject: Re: [google-appengine] working with Images
>>>
>>>
>>>I believe you're supposed to store it in Blobstore and serve it from there.
>>>
>>>
>>>On Tue, Aug 10, 2010 at 12:52 AM, Julie <[email protected]> wrote:
>>>
>>>Hi!
>>>>
>>>>Has anyone successfully wrote something using the GAE's "Images" Java API? 
>> I'm
>>>>trying to learn.  I read the Overview and is trying to do a resize of my 
>>sample
>>>>image.  After getting it into byte array and going through the sample code
>>>>provided on the website, how can I convert it back to an image and either
>>>>display it on the website or store it?  I'm trying to use 
>>javax.imageio.ImageIO
>>>>to do this but my Eclipse is saying the Google App engine doesn't support 
>this
>>>>at java runtime?  If I use another route, I get 
>>>>java.awt.image.BufferedImage 
>>is
>>>>not supported by Google App Engine's Java runtime environment.
>>>>
>>>>How can I convert my transformed image back to an image file?
>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>You received this message because you are subscribed to the Google Groups 
>>>>"Google App Engine" 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?hl=en.
>>>>
>>>>
>>>
-- 
>>>
>>>You received this message because you are subscribed to the Google Groups 
>>>"Google App Engine" 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?hl=en.
>>>
>>>
-- 
>>>
>>>You received this message because you are subscribed to the Google Groups 
>>>"Google App Engine" 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?hl=en.
>>>
>>
>
>
-- 
>You received this message because you are subscribed to the Google Groups 
>"Google App Engine" 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?hl=en.
>


-- 
--
Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.



      

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to