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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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.
Introduction to Processes
Starting up a Project

762 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