how to convert ppt slides to images in google app engine, i am using apache POI, which in turn uses java.awt and bufferedimage classes that is not supported in google app engine

90 views
Skip to first unread message

Abhishek Jaiswal

unread,
Apr 11, 2015, 10:46:05 PM4/11/15
to google-a...@googlegroups.com
I am creating a google app engine project which aim is to convert ppt/pptx file slides to images and store these images in blobstore, i am using apache POI XMLSlideShow class to read slides, since the converion uses java.awt package which is not supported in app engine, searched a lot even not found in stackoverflow, thinking of to migrate to windows azure.

Jim

unread,
Apr 12, 2015, 3:20:42 PM4/12/15
to google-a...@googlegroups.com
We've made limited use of POI on GAE, but as you say the classes that use the java.awt package will not work.  We just need to read/write Excel and Word documents for which it works fine.

Have you looked at Google Computer Engine?  I imagine you can get the full POI library to work there (you get a complete virtual machine much like AWS EC2 or Azure Virtual Machines).

Vinny P

unread,
Apr 13, 2015, 1:41:15 AM4/13/15
to google-a...@googlegroups.com
On Sat, Apr 11, 2015 at 9:46 PM, Abhishek Jaiswal <abhi1...@gmail.com> wrote:
I am creating a google app engine project which aim is to convert ppt/pptx file slides to images and store these images in blobstore, i am using apache POI XMLSlideShow class to read slides, since the converion uses java.awt package which is not supported in app engine



As Jim said, you can and should try Google Compute Engine. But you should also look at Managed VMs and try to run Apache POI there. You specifically mentioned the java.awt package: the Managed VMs demo application ( https://github.com/GoogleCloudPlatform/appengine-java-vm-guestbook-extras )  uses the java.awt package and it runs successfully.

 
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Mario

unread,
Apr 13, 2015, 1:42:33 AM4/13/15
to google-a...@googlegroups.com
Adding to Jim's answer, you could use Google Cloud Managed VMs that allow you more flexibility including to be able to run the AWT library like in this example.

If you'd need even more flexibility you could use custom runtimes for your Managed VMs.
Reply all
Reply to author
Forward
0 new messages