Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Recieving Images from a scanner

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello every one
I would like to know how I would go about recieving an image from a scanner. What I would like to do is recive the image in the tiff format(is that supported by java) and display in a container. I'm pretty much a newbie so I have no idea where to start on this. Any info would be greatly appreciated.
Thanks in advance
Tony.
 
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't believe there is an easy way to do this.
If you happen to know the protocol to communicate with the scanner (TWAIN or whatever) via USB or serial ports, you could try to implement it with the java.comm API.
The simplest solution is probably to write the scanner interfacing code in C(++) and connect it to Java with JNI. This would introduce other issues though (learning JNI, cross-platform compatability if necessary, etc.).
There may also be pre-made commercial solutions out there somewhere.
Interfacing with hardware isn't something easily done in Java (either a pro or con depending on your point of view). Best of luck on your search for a solution.
David Weitzman
 
reply
    Bookmark Topic Watch Topic
  • New Topic