| Author |
creating an image from a hex string Java 6
|
johnti davies
Greenhorn
Joined: Jun 09, 2009
Posts: 1
|
|
Hi
I would like to know how to create an image from a passed hex string. I have a legacy swf that puts out something like this
FFFFFFF,FFFFFF,FFFFFF,.............etc
My web app grabs this info along with the fileType(ie JPG GIF) and width and height data ready to be processed by Java.
I have looked at java.awt.image.MemoryImageSource but am not to sure how to apply it or even if its the class for the job. If someone who has done something like this before could point me in the right direction I would be very grateful.
Regards
Johnti
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Your first step should be converting the HEX string into bytes (to be exact: a byte[]).
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: creating an image from a hex string Java 6
|
|
|