You will need to attach it to your SQL Server.īelow is the connection string to the database.
In the source code attached I have added the database files. Through the USB interface can realize the connection with PC machine and related equipment.Magnetic card support two-way charge, according to different user requirements, magnetic card 1, 2, 3 track information,the most common reader. The complete description is available in the Figure belowĪs you can see above for the id field I have set Identity Specification true, so that it automatically increments itself.ĭepending on the type of the file below are the content types ZCS160 is a multi-functional reader to help you read magnetic stripe cards and read/write RFID cards IC card. Here I have created a Database called dbFiles and it has a table called tblFiles. Create a new project in Android studio (I used version 3.2.1) or you can download the source files and choose: File-New-Import project. Here I will explain how to save and retrieve files from database. In this article I will explain with example how to read binary data files and convert them to their respective file formats and write the files as binary data and save it to database.įiles can be easily saved in the SQL Server Database Saving it in database makes it easily manageable.