java.awt.* is not supported by GAE? how to resolve this?

后端 未结 5 1355
失恋的感觉
失恋的感觉 2021-01-21 04:16

BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);

in app engine , i found it doesn\'t work, it said that java.awt.image.bufferedImage i

相关标签:
5条回答
  • 2021-01-21 04:52

    The Google App Engine has a great built-in Images API for image processing tasks. For filesystem emulation on the Google App Engine, have a look at GAE VFS

    In short, the way you are trying to accomplish your goal is inconsistent with the design of the App Engine.

    0 讨论(0)
  • 2021-01-21 04:59

    so can someone tell me how to implement those functions in GAE?

    The simple answer is that it is not possible in GAE.

    0 讨论(0)
  • 2021-01-21 04:59

    GAE does not support java.awt images. You have to use GAE Image API to work with images. Reference: https://developers.google.com/appengine/docs/java/images/

    This API operates with bytes. The source/destination of your image data can be: post from form, URL connection, DataStore BLOB or BlobStorage.

    0 讨论(0)
  • 2021-01-21 05:03

    If the usual built-in packages aren't available, you could try Jimi, which is a pure Java image processing library. It hasn't been updated in the best part of a decade, but it should do the job. No school like the old school.

    0 讨论(0)
  • 2021-01-21 05:10

    For some seasons, when you are using external libs already using BufferedImage behind the scenes the GAE's ImageService is useless. I have googled out https://github.com/witwall/appengine-awt but haven't tryed it yet. i believe it is enough to just add the dependency of this lib to the project to make it working.

    0 讨论(0)
提交回复
热议问题