• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Scanned Documents

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic