Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

image byte array to thumbnail byte array

  • 19-12-2002 03:43PM
    #1
    Closed Accounts Posts: 1,651 ✭✭✭


    Like the title says.
    I've got an array of bytes that I've read from a BLOB. It's a GIF image and I want to make a thumbnail out of it. Let's say scale it down to 1/4 the size or something.
    This would be fine if I was able to use the AWT classes but I can't as I'm on a headless machine (no X11 server).
    There are supposed solutions such as setting java.awt.headless to true or installing some kind of x buffer or using fake AWT classes but I've had no luck with them so far.

    So basically I want to know if it's possible to get an array of bytes and turn it into a thumbnail version of that array without using any AWT classes.


Advertisement
Advertisement