Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes How can I convert a Hex stream to a bitmap? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "How can I convert a Hex stream to a bitmap?" Watch "How can I convert a Hex stream to a bitmap?" New topic
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
    
  66

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

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I convert a Hex stream to a bitmap?
 
Similar Threads
Converting an decimal int to a hex without using Integer.toHexString
Hex and Octal
Converting to Hexadecimal literals
number converstion between(decimal, octal, Hex)
ISO 8583 bitmap coding format