Author
How can I convert a Hex stream to a bitmap?
Sayantan Majumdar
Greenhorn
Joined: Sep 28, 2008
Posts: 16
How can I convert a Hex stream to a bitmap? Is there any good documents on this?
Thanks.
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26173
A bitmap is a file. Are you saying you want to write the hex values to a file or something else?
[Blog ] [JavaRanch FAQ ] [How To Ask Questions The Smart Way ] [Book Promos ]
Blogging on Certs: SCEA Part 1 , Part 2 & 3 , Core Spring 3 , OCAJP , OCPJP beta , TOGAF part 1 and part 2
Sayantan Majumdar
Greenhorn
Joined: Sep 28, 2008
Posts: 16
Jeanne Boyarsky wrote: A bitmap is a file. Are you saying you want to write the hex values to a file or something else?
I have a the stream of hex value of a bitmap with me. I want to show an image on a HTML page created out of the stream.
Thanks.
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
posted May 31, 2009 17:40:03
0
Convert it to binary and write it to the response. For example, it's common to have a servlet (or whatever back-end technology you're using) serve images by using the servlet as the source for an HTML image tag, and the servlet writes the image to the response.
subject: How can I convert a Hex stream to a bitmap?