469,317 Members | 1,971 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

How to convert a Byte array to image

Hi,
How to convert a byte array to image....i mean i have to convert a Byte array into image format.....please hellp.........i need the java code...

Thanking You.
Aug 22 '09 #1
3 11135
Dheeraj Joshi
1,123 Expert 1GB
Please do not ask for the code...

If you have already coded it.. and if you have a bug.. Then post the code, we will try to resolve it.

Regards
Dheeraj Joshi
Aug 22 '09 #2
Dheeraj Joshi
1,123 Expert 1GB
Check this link... It may help you.

Link

Regards
Dheeraj Joshi
Aug 22 '09 #3
JosAH
11,448 Expert 8TB
@dpsairam
It's easy to do it yourself, no need for begging for code; create a BufferedImage of the right size and type and copy all your pixel data from your arrays over to the image. All it takes are two nested loops and the setRGB( ... ) method from your BufferedImage.

kind regards,

Jos
Aug 22 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Swarup | last post: by
1 post views Thread by Fritz Switzer | last post: by
2 posts views Thread by Clas Hortien | last post: by
7 posts views Thread by Rob T | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.