471,854 Members | 1,906 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,854 software developers and data experts.

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 11331
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
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.