File acquisition method and device

A file acquisition and file technology, applied in the field of financial technology, can solve the problems of poor caching, occupying memory, and increasing the degree of coupling between web applications and native applications.

Pending Publication Date: 2022-08-09
WEBANK (CHINA)
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Disadvantage 1: This process is prone to time-consuming base64 encoding phase, time-consuming base64 file transmission phase, and time-consuming browser parsing base64 file to obtain the image phase; and, because the average size of the base64-encoded file is compared to the source file It will increase by about 30%. Therefore, if there are 10 pictures in the 20 chat messages to be pulled, and each picture itself is 2M, and the encoded base64 string may become 3M, then the web application is requesting the scene. When chatting messages, 30M i

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File acquisition method and device
  • File acquisition method and device
  • File acquisition method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0040] When the native application in the current terminal is faced with a request to obtain the local file of the terminal sent by the web application in the same terminal, due to the local sandbox restrictions and browser security restrictions on the terminal, the native application only The local file desired by the web application can be processed by Base64 encoding, so that the native application can transmit the encoding resu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the field of finance science and technology, and discloses a file obtaining method and device. A native application receives a file obtaining request sent by a web application; if the native application determines that the terminal starts the HTTP service, the native application loads a local file to a project folder; and the native application generates a uniform resource locator url for obtaining the local file based on the storage path of the local file corresponding to the project folder, and sends the url to the web application. According to the mode, under the scene that the terminal starts the HTTP service, the file desired by the web application is processed into the url form for obtaining the file, so that the web application can obtain the desired file from the terminal in a mode of sending the HTTP request, the effect of light weight in the file obtaining process is achieved, and the file obtaining efficiency is improved. And the web application does not need to be embedded into the native application, so that the method and the device are suitable for web applications deployed on line.

Description

technical field [0001] The embodiments of the present application relate to the field of financial technology (Fintech), and in particular, to a method and apparatus for acquiring a file. Background technique [0002] With the development of computer technology, more and more technologies (such as big data, cloud computing or blockchain) are applied in the financial field, and the traditional financial industry is gradually transforming into financial technology. For example, with the continuous expansion of banking business, the bank designs a native application that is matched with enterprise WeChat. Based on this native application, multiple customer service personnel of the bank can use the same enterprise WeChat account and according to the web browser they open in their browsers. Application interface to provide business services to customers. [0003] For the business service process described above, due to sandbox restrictions and browser security restrictions, the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L67/02H04L67/06H04L67/146G06F16/955H04L61/4511H04L9/32
CPCH04L67/02H04L67/06H04L67/146G06F16/9566H04L9/3247H04L9/3239
Inventor 商志远潘子瑜谢守坦
Owner WEBANK (CHINA)
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products