• Post Reply Bookmark Topic Watch Topic
  • New Topic

Scanned Documents  RSS feed

 
Edward Amankwa
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Supposing I am scanning a document, how can I display the scanned document in a viewer and also show the scanned document icon in an open folder.
 
Brian Mozhdehi
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post a little more information about what you are trying to do and maybe some code if you've attempted to write if any and you'll have a better shot at getting some help IMHO. I dont know for example from your question if you are trying to tie into a scanner or if you are reading the contents of a file using FileInputStream or what
 
Edward Amankwa
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am actually trying to tie to a scanner and I don't need to read the content of the document
 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok!

So, have you successfully accessed the scanner and it has returned you a scanned immage?

How did it return you this scan? It is a file on disk? A byte[]? An image? ...

How can we tell you how you can process this image if we do not know anything about it?
 
Brian Mozhdehi
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually, you do have to read the content of the document if you expect to display it in a viewer.

I agree with the last post that we dont really have much information, but that said, my guess is that you'll need to study the Java2D API and use the code approach you find there to create an image based on the bytes that you read from the scanner. Then, add that image to a JPanel or whatever in your application.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!