how can we rename the scanned image file from scanner which is by default scan_01
is their any api which can rename the scanned o/p file
--- Update ---
with help of java
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
how can we rename the scanned image file from scanner which is by default scan_01
is their any api which can rename the scanned o/p file
--- Update ---
with help of java
Andrea, www.andbin.net — SCJP 5 (91%) – SCWCD 5 (94%)
Useful links for Java beginners – My new project Java Examples on Google Code
dude001 (February 25th, 2014)
bro u didn't get me
i mean to say that when person put a sheet in the scanner machine, a scanner gui is appeared which ask in what format we need to save the scanned image
so it just save the scanned image as scan_01.jpg
i m creating an application where a gui will be present & person will fill the form in the gui, based on the information provided by person i want to rename the scanned image but scanner provide a default name
So tell me how can i do that
--- Update ---
ok i got it
What do you want to control? The GUI of the scanner software? (Epson software has its scanner GUI, HP has its own, etc...). You can't (hardly) control that GUI directly, since it's different for each scanner producer.
At native O.S. level there are apposite APIs, the TWAIN API and on Windows the WIA (Windows Image Acquisition) and others. This at native level (and I don't remember now if these APIs can control the filename).
At Java level there is nothing "standard" and well known for this. There is something (please see this search on Google) but I don't known and never used.
So sorry, you are asking an "hard" thing.
Andrea, www.andbin.net — SCJP 5 (91%) – SCWCD 5 (94%)
Useful links for Java beginners – My new project Java Examples on Google Code
yes i m working with jtwain
--- Update ---
till now i m able to understand how to hide the scanner gui
You could tell this before .....
Have you looked at page 15 of the developer guide of JTwain? It tells how to save the image to a file programmatically.
Note: I never used JTwain ... It took me just 3 minutes to find this ....
Andrea, www.andbin.net — SCJP 5 (91%) – SCWCD 5 (94%)
Useful links for Java beginners – My new project Java Examples on Google Code
actually i need to study the methods of jtwain first
Another approach could be to use a FileSystem WatchService to wait for the creation of the file.
If you don't understand my answer, don't ignore it, ask a question.
what is that can u explain it more
See the Java SE 1.7 API doc for those classes: FileSystem and WatchService
for a description of what they can do.
If you don't understand my answer, don't ignore it, ask a question.