Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scanning items into database for online shopping site

 
martin botha
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i want to know how do i get a scanner to save the items into a database for an online shopping site
i sort of have an idea but i dont know how it will be integrated into the shopping site\
This is the idea
get items from supplier, scan them into a database (with software or what i dont know) then put them on shopping site then the customers can search for item and it would show up

any suggestions
thank you
 
Campbell Ritchie
Sheriff
Pie
Posts: 49772
69
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I would start with the appropriate section of the Java™ tutorials.
 
martin botha
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
but i only need to know how the scanning of items into a database will work my boss wants to know more or less how it will work
 
Hunter McMillen
Ranch Hand
Posts: 492
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google is probably a decent place to start, try this search phrase:

"Java Scanner scanning into database"

Hunter
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15437
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by "scanning" items - do you mean use a barcode scanner to read the barcodes and add those to a database? Or scanning images?
 
martin botha
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Java Scanner scanning into database"

doesn't give a lot of results thanks anyway

and i mean scanning of barcodes of items and add them to a database

and anyone know which software will be used i see people talk about using oracle isn't oracle used more for shipment orders
 
Rob Spoor
Sheriff
Pie
Posts: 20606
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Separate the two problems. First find out how to scan barcodes, and what the result type is (String, int, byte[], ?). Focus on inserting after that. After all, you can scan barcodes and just display the results, and you can insert almost anything into a database. They really are two separate problems that come together in your application.
 
martin botha
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK here is the thing we are working on summer cart so i dont have to worry about the databases

All i need to know is when i scan the barcodes do i need any software or can i just add it in word or whatever

and upload it to the database
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15437
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never done it myself, but I know that you can buy barcode scanners which plug into your computer and which work just like a keyboard. So, if you scan a barcode, it enters the digits of the barcode into the computer as if you were typing those digits on a regular keyboard.

So, what you'd have to make is a simple program that reads the digits from the keyboard, and then process the data. You don't need anything special to handle the barcode scanner.
 
martin botha
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks jesper

I have seen the barcode scanners that works like a keyboard all we need is the software for it.

So you dont know if there is any program we can buy to use for that because we dont really have the time to make one.
 
Hunter McMillen
Ranch Hand
Posts: 492
Firefox Browser Linux VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I imagine the actual device that scans the barcode should come with some sort of scanning software. It wouldn't be that great of a product if it didn't


Hunter
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15437
41
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the scanner acts as if it is a keyboard, you probably don't need any driver or other software for it.

I think Martin is looking for a program to insert the scanned codes into his database. When you have such a scanner, it will work exactly the same as when you would type in the digits of the barcode manually on a normal keyboard. You wouldn't need any special software other than what you're already using to enter the item numbers.

Do you already have software for your online shopping site? If yes, then it most likely has a module to enter product details. There, you'd just scan the barcode instead of manually typing in the product code digits. Or do you want to do more than just enter the barcode digits?
 
martin botha
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically what we want to do with the barcodes thing is we want to check the stock levels of the products

Just to add items whenever they are low so we dont have to type in everything into a database

So if you buy a scanner you will get software for it with the scanner and you can just add it from there into a database

Thanks for the replies been very helpful

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic