?
Solved

creating image from byte array in java

Posted on 2003-03-19
2
Medium Priority
?
392 Views
Last Modified: 2012-06-21
hi,
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.
0
Comment
Question by:manishtemkar
2 Comments
 

Accepted Solution

by:
thinkdifferent earned 1000 total points
ID: 8179347
hiii

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

0
 

Expert Comment

by:CleanupPing
ID: 9446988
manishtemkar:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

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