CN103049776A - File exchange based B/S system card reading and writing method - Google Patents
File exchange based B/S system card reading and writing method Download PDFInfo
- Publication number
- CN103049776A CN103049776A CN2012105923470A CN201210592347A CN103049776A CN 103049776 A CN103049776 A CN 103049776A CN 2012105923470 A CN2012105923470 A CN 2012105923470A CN 201210592347 A CN201210592347 A CN 201210592347A CN 103049776 A CN103049776 A CN 103049776A
- Authority
- CN
- China
- Prior art keywords
- card
- attribute
- binary
- binary data
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention discloses a file exchange based B/S system card reading and writing method, which comprises card reading operation and card writing operation. In an ActiveX widget mode, a binary file is used as the information exchange medium to realize the reading and writing operation of a client side card by a B/S system; and the data of the card is transmitted to a server in the binary form and is analyzed by the server, or is stored to the card after being analyzed by the server. The workload of a client side can be reduced, and the card reading efficiency is improved. The data is exchanged in the binary form, a control character is permitted to be stored in the card, and therefore the card information range is expanded.
Description
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of B/S system read-write chucking method based on exchange files.
Background technology
The WEB browser is the main application software of client, and the B/S system is the main way of current Application and Development system, it is a kind of network structure pattern after Web rises, unified client based on the B/S system model, the core that systemic-function is realized focuses on the server, has simplified exploitation, maintenance and the use of system.
The read-write card equipment of access client in the WEB browser mainly realizes that by the mode with ActiveX control the mode of current main-stream is to read card number by ActiveX control, and system is by the identity of card number identification card.But this reading/writing method is suitable for only storing in the card card of card number, when in the card during not only with card number but also with the storage data, this reading/writing method is so that system can not effectively identify instruction character or data, and both ensure in the card of card that with card number with the storage data, therefore existing reading/writing method can not satisfy the read-write demand that ensures card.
The B/S system need to carry out the data interaction between server and the client card when read-write card, simultaneously, the data translation in the card need to be become the discernible information of system, therefore the present invention proposes a kind of B/S system read-write chucking method based on exchange files.
Summary of the invention
The present invention proposes a kind of B/S system read-write chucking method based on exchange files, card reading method is expanded, can realize reading all data in the card by ActiveX, comprise the character of browser None-identified, and can communicate with server.
The objective of the invention is to be achieved through the following technical solutions:
Writing operation:
One, server obtains card image from ensure the card system database, saves as the card object;
Two, take out each attribute data of card object, be converted to binary data according to the transfer algorithm that object information is stored in the card, the transfer algorithm that object information stores in the card is as follows:
1) obtains each attribute of card object, sort according to the storage mode that arranges;
2) each attribute of the card object after will sorting is converted into binary data successively, uses the coding form of UNICODE during conversion;
3) set the maximum length of each attribute, expand the data length of each attribute to the maximum length of setting attribute by add 0 mode on the right side;
4) binary data with each attribute splices, and forms complete binary data;
Three, ActiveX control is with binary number according to this in the automatic download client of file, and reads out the content of binary data in the file;
Four, ActiveX control is written to binary data in the card by interface, and return result is to server;
The Card Reader operation:
One, ActiveX control calls the card interface, will block internal information and read out, and forms binary data stream;
Two, binary data stream is saved as binary file, leave client in;
Three, ActiveX control is realized binary file is uploaded to guarantee card system server by automatic upload function;
Four, system server receives binary file, and processes the binary file receive according to the transfer algorithm that the card internal information stores object into, and it is saved as the card object, and it is as follows that the card internal information stores the transfer algorithm of object into:
1) with the binary data in the binary file, the maximum length of setting according to each attribute of card object is divided the binary data of each attribute;
2) binary data of ready-portioned each attribute is converted successively to each attribute of card object;
3) each attribute of the card object after will changing, sorting according to the storage mode that arranges obtains the card object;
Five, the card object that step 3) is obtained is shown to the client user, finishes the card read operation.
Beneficial effect of the present invention:
1. by the ActiveX control mode, as the message exchange medium, realize that the B/S system is to the read-write operation of client card with binary file.
2. the data of card are resolved by server with binary server of passing in form, store card into after perhaps server is resolved, and can reduce the workload of client, improve Card Reader efficient.
3. by the binary mode swap data, can allow storage control character in the card, enlarge the scope of card image.
4. by the binary file swap data, can improve the dirigibility of card data storage, when data layout changes in the card, on the not impact of read-write card interface, only need to revise the transfer algorithm of server end.
Description of drawings
Fig. 1 is process flow diagram of the present invention;
Embodiment
In order to understand better technical scheme of the present invention, below in conjunction with drawings and the specific embodiments the present invention is done to describe in further detail.
1) ensure card information storage mode in card:
Data are with the form sequential storage of binary stream in the card, and the concrete meaning of binary stream is by the storage mode of formulating in the table 1 explanation that makes an explanation.When reading and writing data, adopt the mode of whole read-write to carry out.
Data memory format in table 1. card
2) ensure card information storage mode in ensureing the card system:
Ensure that card information form with object form in ensureing the card system exists, each object represents a card image, and the card internal information is stored in binary mode, for object information is stored in the card, in order object information to be stored into Ka Nei or will to block internal information and store object into, need to carry out conversion operations.
The present invention is divided into writing operation and Card Reader operation, and this time mask body describes:
Writing operation:
One, server obtains card image from ensure the card system database, saves as the card object.
Two, take out each attribute data of card object, be converted to binary data according to the transfer algorithm that object information is stored in the card, the transfer algorithm that object information stores in the card is as follows:
1) obtains each attribute of card object, sort according to the storage mode that arranges;
2) each attribute of the card object after will sorting is converted into binary data successively, uses the coding form of UNICODE during conversion;
3) set the maximum length of each attribute, expand the data length of each attribute to the maximum length of setting attribute by add 0 mode on the right side;
4) binary data with each attribute splices, and forms complete binary data.
Three, ActiveX control is with binary number according to this in the automatic download client of file, and reads out the content of binary data in the file.
Four, ActiveX control is written to binary data in the card by interface, and return result is to server.
The Card Reader operation:
One, ActiveX control calls the card interface, will block internal information and read out, and forms binary data stream.
Two, binary data stream is saved as binary file, leave client in;
Three, ActiveX control is realized binary file is uploaded to guarantee card system server by automatic upload function.
Four, system server receives binary file, and processes the binary file receive according to the transfer algorithm that the card internal information stores object into, and it is saved as the card object, and it is as follows that the card internal information stores the transfer algorithm of object into:
1) with the binary data in the binary file, the maximum length of setting according to each attribute of card object is divided the binary data of each attribute;
2) binary data of ready-portioned each attribute is converted successively to each attribute of card object;
3) each attribute of the card object after will changing, sorting according to the storage mode that arranges obtains the card object;
Five, the card object that step 3) is obtained is shown to the client user, finishes the card read operation.
In sum, more than be preferred embodiment of the present invention only, be not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (1)
1. the B/S system read-write chucking method based on exchange files is characterized in that,
Writing operation:
One, server obtains card image from ensure the card system database, saves as the card object;
Two, take out each attribute data of card object, be converted to binary data according to the transfer algorithm that object information is stored in the card, the transfer algorithm that object information stores in the card is as follows:
1) obtains each attribute of card object, sort according to the storage mode that arranges;
2) each attribute of the card object after will sorting is converted into binary data successively, uses the coding form of UNICODE during conversion;
3) set the maximum length of each attribute, expand the data length of each attribute to the maximum length of setting attribute by add 0 mode on the right side;
4) binary data with each attribute splices, and forms complete binary data;
Three, ActiveX control is with binary number according to this in the automatic download client of file, and reads out the content of binary data in the file;
Four, ActiveX control is written to binary data in the card by interface, and return result is to server;
The Card Reader operation:
One, ActiveX control calls the card interface, will block internal information and read out, and forms binary data stream;
Two, binary data stream is saved as binary file, leave client in;
Three, ActiveX control is realized binary file is uploaded to guarantee card system server by automatic upload function;
Four, system server receives binary file, and processes the binary file receive according to the transfer algorithm that the card internal information stores object into, and it is saved as the card object, and it is as follows that the card internal information stores the transfer algorithm of object into:
1) with the binary data in the binary file, the maximum length of setting according to each attribute of card object is divided the binary data of each attribute;
2) binary data of ready-portioned each attribute is converted successively to each attribute of card object;
3) each attribute of the card object after will changing, sorting according to the storage mode that arranges obtains the card object;
Five, the card object that step 3) is obtained is shown to the client user, finishes the card read operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105923470A CN103049776A (en) | 2012-12-31 | 2012-12-31 | File exchange based B/S system card reading and writing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105923470A CN103049776A (en) | 2012-12-31 | 2012-12-31 | File exchange based B/S system card reading and writing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103049776A true CN103049776A (en) | 2013-04-17 |
Family
ID=48062408
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105923470A Pending CN103049776A (en) | 2012-12-31 | 2012-12-31 | File exchange based B/S system card reading and writing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103049776A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030222137A1 (en) * | 2001-05-14 | 2003-12-04 | Saori Nishimura | IC card issuance system |
CN1489747A (en) * | 2001-10-31 | 2004-04-14 | 索尼公司 | Ic card, information processing terminal and data communication system and method among three parts |
CN1954345A (en) * | 2004-05-28 | 2007-04-25 | 国际商业机器公司 | Smart card data transaction system and method for providing storage and transmission security |
CN101620758A (en) * | 2008-07-01 | 2010-01-06 | 中国银联股份有限公司 | Intelligent card supporting Web service |
US20100065636A1 (en) * | 2008-04-29 | 2010-03-18 | Java Information Technology Ltd. | Ontology-Based EPC Automatic Conversion Method and System |
CN102073688A (en) * | 2010-12-21 | 2011-05-25 | 上海容恒信息科技有限公司 | Device for converting client form to Web page and method thereof |
US20110264702A1 (en) * | 2008-03-14 | 2011-10-27 | Microsoft Corporation | Conversion of hierarchical infoset type data to binary data |
CN102682312A (en) * | 2011-06-10 | 2012-09-19 | 中国人民解放军国防科学技术大学 | Data encoding method for passive radio frequency identification from reader-writer to tag |
-
2012
- 2012-12-31 CN CN2012105923470A patent/CN103049776A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030222137A1 (en) * | 2001-05-14 | 2003-12-04 | Saori Nishimura | IC card issuance system |
CN1489747A (en) * | 2001-10-31 | 2004-04-14 | 索尼公司 | Ic card, information processing terminal and data communication system and method among three parts |
CN1954345A (en) * | 2004-05-28 | 2007-04-25 | 国际商业机器公司 | Smart card data transaction system and method for providing storage and transmission security |
US20110264702A1 (en) * | 2008-03-14 | 2011-10-27 | Microsoft Corporation | Conversion of hierarchical infoset type data to binary data |
US20100065636A1 (en) * | 2008-04-29 | 2010-03-18 | Java Information Technology Ltd. | Ontology-Based EPC Automatic Conversion Method and System |
CN101620758A (en) * | 2008-07-01 | 2010-01-06 | 中国银联股份有限公司 | Intelligent card supporting Web service |
CN102073688A (en) * | 2010-12-21 | 2011-05-25 | 上海容恒信息科技有限公司 | Device for converting client form to Web page and method thereof |
CN102682312A (en) * | 2011-06-10 | 2012-09-19 | 中国人民解放军国防科学技术大学 | Data encoding method for passive radio frequency identification from reader-writer to tag |
Non-Patent Citations (2)
Title |
---|
钱文婷: "B/S架构下浏览器端访问本地读卡器方法的研究与实现", 《自动化应用》 * |
黄国超等: "基于Unicode编码的信息隐藏算法研究与设计", 《计算机技术与发展》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103136243B (en) | File system duplicate removal method based on cloud storage and device | |
CN107870728A (en) | Method and apparatus for mobile data | |
CN106648467A (en) | Log generation method and system | |
US20170116521A1 (en) | Tag processing method and device | |
CN103500089A (en) | Small file storage system suitable for Mapreduce calculation model | |
CN107870979A (en) | Electronic installation, extract tables of data data method and storage medium | |
CN104572781A (en) | Method and device for generating transaction log | |
CN109146095A (en) | The treating method and apparatus of multiservice system problem | |
CN101908218A (en) | Editing equipment and method for arranging | |
CN104915696A (en) | Android-platform-based NFC writing and reading method | |
CN103365894B (en) | A kind of font format conversion method and device | |
CN106484412A (en) | A kind of two-way binding implementation method of the front end data based on accessor abduction | |
CN104090920A (en) | System for realizing digital content cross-terminal publishing | |
CN105488471A (en) | Character pattern recognition method and device | |
CN107944525A (en) | A kind of method and system of the expansion Quick Response Code capacity based on data segmentation | |
CN108469953A (en) | A kind of generation method of page table list, server and storage medium | |
CN102521551A (en) | Personalized IC (integrated circuit) card issuing device and method | |
CN102257498B (en) | Comment generation method of configuration files and configuration file generation device | |
CN106067049A (en) | A kind of Android client card reading method based on NFC technique | |
CN107329756B (en) | Program file generation method and device, storage medium, processor and terminal | |
CN104346616A (en) | Character recognition device and character recognition method | |
CN104102552A (en) | Message processing method and device | |
CN102446206B (en) | A kind of cross-platform switch and method of three-dimensional data | |
CN103440231A (en) | Equipment and method for comparing texts | |
CN103049776A (en) | File exchange based B/S system card reading and writing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130417 |