This discussion is archived
0 Replies Latest reply: Jan 26, 2010 12:01 PM by 843851 RSS

Re: Problem Loading and Displaying HBacgroundImage from byte[]

843851 Newbie
Currently Being Moderated
By the way, i followed the the HaviBackgroundontroller exaple for Interactie TV Standards book by Steven Morris.

From the OCAP Api documentation:
"HBackgroundImage() creates an HBackgroundImage object from an array of bytes encoded in the same encoding format as when reading this type of image data from file."

If i try to write to a file ("temp.mpg") using FileOutputStream and try to pass the file as it is into the constructor of HBackgroundImage( String path), then It works fine.
But, if I create HBackgroundImage(byte[]) directly from the same bytes that i wrote to the file, it doesnt work.

Any inputs would be of great help guys.

Thank you once again..
Rahul

Edited by: rahul.bourothu on Jan 26, 2010 11:54 AM