• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I convert a Hex stream to a bitmap?  RSS feed

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I convert a Hex stream to a bitmap? Is there any good documents on this?

Thanks.
 
author & internet detective
Marshal
Posts: 37518
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A bitmap is a file. Are you saying you want to write the hex values to a file or something else?
 
Sayantan Majumdar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!