aspose file tools
The moose likes Swing / AWT / SWT and the fly likes SWT load image from byte array or Blob Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "SWT load image from byte array or Blob" Watch "SWT load image from byte array or Blob" New topic
Author

SWT load image from byte array or Blob

Garner Tan
Greenhorn

Joined: Aug 05, 2011
Posts: 1
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: SWT load image from byte array or Blob
 
Similar Threads
Display SQL Server Image Data Type
Sending multiple images
Problem reading BLOB from database and looping through VO - Help
Using Eclipse SWT Image, JDBC SQLite and JAVA to insert, store and retrieve Images.
Inserting Image into Oracle.