• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT load image from byte array or Blob  RSS feed

 
Garner Tan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having problems with creating images from a byte array in SWT.

So, I created a simple code to test retrieving an image from bytes.



However, I get a an error:

org.eclipse.swt.SWTException: Unsupported or unrecognized format
with the stacktrace pointing to

ImageData imageData = new ImageData(istream);

Can anybody help me?

Thanks!

Edit: Nevermind, I realized that I passed an incomplete data, I just used AWT Image instead.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!