creating image from byte array in java

Posted on 2003-03-19
Medium Priority
Last Modified: 2012-06-21
i am getting a byte array as a decoded output from h263 codec (In c)
now i want to convert that byte array into an image and display the same in
my java application.I tried creating the image using toolkit.createImage but it did,t work.can anybody suggest me a way to get the same.I even tried the
memoryImageSource ,but th o/p that i get is nothing to the actual one.
Question by:manishtemkar

Accepted Solution

thinkdifferent earned 1000 total points
ID: 8179347

try using Image.createImage(byte[] imageData, int imageOffset, int imageLength)

imageoffset will be 0 and imageLength will be ur byte array length.

hopefully that will resolve ur problem


Expert Comment

ID: 9446988
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Starting up a Project
Loops Section Overview

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question