CN107222580A - A kind of method that utilization picture realizes cross-domain transmission data - Google Patents
A kind of method that utilization picture realizes cross-domain transmission data Download PDFInfo
- Publication number
- CN107222580A CN107222580A CN201710630954.4A CN201710630954A CN107222580A CN 107222580 A CN107222580 A CN 107222580A CN 201710630954 A CN201710630954 A CN 201710630954A CN 107222580 A CN107222580 A CN 107222580A
- Authority
- CN
- China
- Prior art keywords
- cross
- domain
- picture
- data
- image data
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of method that utilization picture realizes cross-domain transmission data, belongs to the cross-domain areas of information technology of acquisition, and the page directly transmits cross-domain picture request, the cross-domain picture asked locally is rendered, image data is parsed into;The format characteristic of the cross-domain data loaded according to server in image data, is intercepted to the image data of page parsing, and then the data after interception are changed, finally, the cross-domain object after being changed.So as to realize cross-domain access, more efficiently, succinctly.
Description
Technical field
The side of cross-domain transmission data is realized the present invention relates to the cross-domain information technology of acquisition, more particularly to a kind of utilization picture
Method.
Background technology
At present, in front-end technology, realize that cross-domain method there are two kinds:
The first, is to utilize<script></script>The cross-domain characteristic of label, js text of the loading comprising cross-domain information
Part, so as to obtain cross-domain information in js files.
Second, be to utilize<iframe></iframe>The cross-domain characteristic of label, html text of the loading comprising cross-domain information
Part, so as to obtain cross-domain information in html files.
Both obtain the method for cross-domain information, it is necessary to extra loading js or html file, and then from the js of loading
Or cross-domain data are obtained in html.If front end needs to send cross-domain request in local page, cross-domain server is asked
During middle data, two methods above implement a little complexity
The content of the invention
In order to solve the above technical problems, the present invention proposes a kind of method that utilization picture realizes cross-domain transmission data,
Cross-domain access is realized, more efficiently, succinctly.
The technical scheme is that:
A kind of method that utilization picture realizes cross-domain transmission data,
The page directly transmits cross-domain picture request, and the cross-domain picture asked locally is rendered, picture is parsed into
Data;The format characteristic of the cross-domain data loaded according to server in image data, is carried out to the image data of page parsing
Then data after interception are changed by interception, finally, the cross-domain object after being changed.
Cross-domain picture is i.e. when sending cross-domain request, the figure that one returned in cross-domain server carries cross-domain information
Piece;Cross-domain picture is parsed in the page, intercepted, then can just get the cross-domain data carried in picture.
Concrete operations content is:
It is more simple, efficient the invention enables page cross-domain request server data, also, do not need extra introducing
Js and html files.
Brief description of the drawings
Fig. 1 is the workflow schematic diagram of the present invention.
Embodiment
More detailed illustrate is carried out to present disclosure below:
When sending cross-domain request, a picture for carrying cross-domain information is returned in cross-domain server, it is right in the page
Picture is parsed, interception, then the cross-domain data carried in picture can be just got, so as to realize cross-domain access.
Concrete operations content is
Claims (3)
1. a kind of method that utilization picture realizes cross-domain transmission data, it is characterised in that
The page directly transmits cross-domain picture request, and the cross-domain picture asked locally is rendered, image data is parsed into;
The format characteristic of the cross-domain data loaded according to server in image data, is intercepted to the image data of page parsing,
Then the data after interception are changed, finally, the cross-domain object after being changed.
2. according to the method described in claim 1, it is characterised in that
Cross-domain picture is i.e. when sending cross-domain request, the picture that one returned in cross-domain server carries cross-domain information;
Cross-domain picture is parsed in the page, intercepted, then can just get the cross-domain data carried in picture.
3. method according to claim 2, it is characterised in that
Concrete operations content is:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710630954.4A CN107222580A (en) | 2017-07-28 | 2017-07-28 | A kind of method that utilization picture realizes cross-domain transmission data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710630954.4A CN107222580A (en) | 2017-07-28 | 2017-07-28 | A kind of method that utilization picture realizes cross-domain transmission data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107222580A true CN107222580A (en) | 2017-09-29 |
Family
ID=59954792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710630954.4A Pending CN107222580A (en) | 2017-07-28 | 2017-07-28 | A kind of method that utilization picture realizes cross-domain transmission data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107222580A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080301766A1 (en) * | 2007-05-29 | 2008-12-04 | International Business Machines Corporation | Content processing system, method and program |
WO2011097517A2 (en) * | 2010-02-04 | 2011-08-11 | Microsoft Corporation | Image tagging based upon cross domain context |
US20110311136A1 (en) * | 2010-06-16 | 2011-12-22 | Microsoft Corporation | Cross-domain browser pre-fetching through data transcoding |
EP2538324A2 (en) * | 2011-06-22 | 2012-12-26 | Google Inc. | Rendering approximate webspace screenshot client-side |
CN103023790A (en) * | 2012-12-31 | 2013-04-03 | 北京京东世纪贸易有限公司 | Method and system used for realizing cross-domain interactive access |
CN103309861A (en) * | 2012-03-07 | 2013-09-18 | 阿里巴巴集团控股有限公司 | Method and device for acquiring cross-domain data |
CN104504096A (en) * | 2014-12-26 | 2015-04-08 | 北京奇虎科技有限公司 | Cross-web information transmitting method and web browsing device |
CN105450504A (en) * | 2015-10-30 | 2016-03-30 | 广州华多网络科技有限公司 | Processing method and system for picture link |
CN105975549A (en) * | 2016-05-03 | 2016-09-28 | 立德高科(昆山)数码科技有限责任公司 | Custom two-dimensional bar code recognition method based on web page |
-
2017
- 2017-07-28 CN CN201710630954.4A patent/CN107222580A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080301766A1 (en) * | 2007-05-29 | 2008-12-04 | International Business Machines Corporation | Content processing system, method and program |
WO2011097517A2 (en) * | 2010-02-04 | 2011-08-11 | Microsoft Corporation | Image tagging based upon cross domain context |
US20110311136A1 (en) * | 2010-06-16 | 2011-12-22 | Microsoft Corporation | Cross-domain browser pre-fetching through data transcoding |
EP2538324A2 (en) * | 2011-06-22 | 2012-12-26 | Google Inc. | Rendering approximate webspace screenshot client-side |
CN103309861A (en) * | 2012-03-07 | 2013-09-18 | 阿里巴巴集团控股有限公司 | Method and device for acquiring cross-domain data |
CN103023790A (en) * | 2012-12-31 | 2013-04-03 | 北京京东世纪贸易有限公司 | Method and system used for realizing cross-domain interactive access |
CN104504096A (en) * | 2014-12-26 | 2015-04-08 | 北京奇虎科技有限公司 | Cross-web information transmitting method and web browsing device |
CN105450504A (en) * | 2015-10-30 | 2016-03-30 | 广州华多网络科技有限公司 | Processing method and system for picture link |
CN105975549A (en) * | 2016-05-03 | 2016-09-28 | 立德高科(昆山)数码科技有限责任公司 | Custom two-dimensional bar code recognition method based on web page |
Non-Patent Citations (1)
Title |
---|
晨曦CX: "解决图片跨域问题", 《URL:HTTPS://WWW.CNBLOGS.COM/CXCHEN/P/7145009.HTML》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104346322B (en) | Document format processing unit and document format processing method | |
CN102043832A (en) | Method for realizing cross-domain request callback on webpage | |
CN102917273B (en) | A kind of method of cross-platform display application and device | |
CN103516577A (en) | Message transmission method in instant messaging system and equipment | |
CN103116645B (en) | The method and device of browsing page by mobile equipment | |
CN104809116A (en) | Method and device for collecting contents as well as terminal | |
TW200614785A (en) | System and method for extending a message schema to represent fax messages | |
CN106878408A (en) | The method and system of cross-domain request data | |
CN112416483A (en) | Method for accessing multiple displays to cloud desktop and related equipment | |
CN103176996A (en) | Image search method based on image feature information and image search engine server based on image feature information | |
CN104679596A (en) | Message processing method and system for improving concurrence performance of server-side | |
CN102752371A (en) | Method for achieving splash on client side and client side | |
CN102420822A (en) | Network file transmission method and system | |
CN104424172A (en) | Typesetting method, typesetting device and typesetting system | |
CN103220343B (en) | Big data multi-system retransmission method | |
CN102629345B (en) | Chain type links up collaboration method, Apparatus and system | |
US20180343216A1 (en) | Context driven modification of attachments in a messaging session | |
CN102214076A (en) | Method and device for implementing print on Web page | |
CN103412728A (en) | Method and system for device file printing based on local area network | |
US20120005295A1 (en) | Method and Device for Mail Processing | |
CN102110144B (en) | Document access method and terminal equipment | |
CN110633443B (en) | Method, device, equipment and medium for intra-page data communication | |
CN107222580A (en) | A kind of method that utilization picture realizes cross-domain transmission data | |
CN104079656B (en) | The efficiency optimizing apparatus and method of soap message in webService | |
CN105335682B (en) | A kind of source synchronous playback method, system and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170929 |