CN108563728A - A kind of method and apparatus that medical image file is uploaded by browser - Google Patents

A kind of method and apparatus that medical image file is uploaded by browser Download PDF

Info

Publication number
CN108563728A
CN108563728A CN201810299610.4A CN201810299610A CN108563728A CN 108563728 A CN108563728 A CN 108563728A CN 201810299610 A CN201810299610 A CN 201810299610A CN 108563728 A CN108563728 A CN 108563728A
Authority
CN
China
Prior art keywords
medical image
image file
file
browser
function module
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.)
Granted
Application number
CN201810299610.4A
Other languages
Chinese (zh)
Other versions
CN108563728B (en
Inventor
索小辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Medical Systems Co Ltd
Original Assignee
Neusoft Medical Systems Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Neusoft Medical Systems Co Ltd filed Critical Neusoft Medical Systems Co Ltd
Priority to CN201810299610.4A priority Critical patent/CN108563728B/en
Publication of CN108563728A publication Critical patent/CN108563728A/en
Application granted granted Critical
Publication of CN108563728B publication Critical patent/CN108563728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This application discloses a kind of method and apparatus uploading medical image file by browser, this method includes the medical image file upload request for receiving user and being triggered by browser, obtain call function corresponding with the preset function module being integrated on the browser, and the preset function module being integrated on the browser is called according to call function, the module is parsed into the instance objects uploaded in the form of file for realizing medical image file;The folder path where the medical image file is finally obtained according to instance objects, and the file where the medical image file is obtained according to the medical image file path;File where uploading from the medical image file to background server.This method can realize whole upload of the user by browser by medical image file in the form of file.

Description

A kind of method and apparatus that medical image file is uploaded by browser
Technical field
This application involves Medical Imaging Technology field more particularly to a kind of sides uploading medical image file by browser Method and device.
Background technology
Medical Imaging is the subject for covering a variety of image technologies based on radiodiagnosis medicine, as common X-ray is taken the photograph Shadow, digital photography (CR, DR), digital subtraction angiography (DSA), computer x lines tomoscan (CT), magnetic resonance imaging (MRI), ultrasonic technique (B ultrasound etc.), radionuclide scanning (SPECT, PET etc.) etc..
With the continuous development of digital medical image technology and the 5th generation hypertext markup language (HTML5) technology, image Doctor is more and more frequent come the scene for browsing medical image using browser, and appellative function also becomes increasingly complex, such as uploads doctor It is exactly one of which to learn image file function.
Currently, in order to realize the shared of medical image file, user such as image doctor need by medical image file from Locally upload to background server.When by existing medical image browser HTML5 page uploading medical image files, user Cannot be uploaded in the form of file, can only select file underedge content selected single choice or entirely by way of operate. And the medical image file of a patient is especially more, if file uploads one by one, file can be caused to upload and occupied excessively Time, reduce user's diagosis experience.
Invention content
In view of this, this application provides a kind of method and apparatus uploading medical image file by browser, with branch It holds user and medical image file is uploaded by browser in the form of file, to save file uplink time, improve user Diagosis is experienced.
In order to reach foregoing invention purpose, the application uses following technical solution:
A method of medical image file is uploaded by browser, including:
Receive the medical image file upload request that user is triggered by browser, the medical image file upload request In carry folder path where medical image file;
According to the medical image file upload request, the preset function module pair on the browser is obtained and is integrated in The call function answered;The preset function module is used to that the text of the source code of medical image file will to be uploaded in the form of file The text formatting of binary format of the format conversion at that can be supported by browser and close to machine language;
The preset function module being integrated on the browser is called according to the call function, by the preset function Module is parsed into the instance objects uploaded in the form of file for realizing medical image file;
The folder path where the medical image file is obtained according to the instance objects, and according to the medicine shadow File as where file path obtains the medical image file;The medical image file institute is uploaded to background server File.
Optionally, the method further includes:The preset function module is generated,
It is described to generate the preset function module, it specifically includes:
It obtains for realizing the source code of medical image file is uploaded in the form of file;
The source code is converted to LLVM bytecodes;
It is the javascript language that text formatting is the first preset format that the LLVM bytecodes, which are processed into format, Subset;First preset format is the text formatting that browser can identify;
The subset of the javascript language is processed into the file that text formatting is the second preset format;Described second Preset format is the binary format close to machine language.
Optionally, the source code makes to show a C language.
Optionally, it is described the preset function module is parsed into it is formal with file for realizing medical image file The instance objects of biography, specifically include:
Obtain store path of the preset function module on the browser;
The file that text formatting is the second preset format is obtained according to the store path;
The file of second preset format is converted into internal storage data;
The internal storage data is compiled and is initialized to upload for realizing medical image file by browser engine Instance objects.
Optionally, the folder path obtained according to the instance objects where the medical image file, and root The file where the medical image file is obtained according to the medical image file path;The doctor is uploaded to background server The file where image file is learned, is specifically included:
Read the folder path carried where the medical image file in the medical image file upload request;
The medical image file in the file where the medical image file is traversed, by the medical image traversed text Part is cached to local memory buffering area;
The medical image file for being buffered in local memory buffering area is sent to background server, so that background server will In the file that the medical image file write-in received newly creates.
A kind of device uploading medical image file by browser, described device include:
Receiving unit, the medical image file upload request triggered by browser for receiving user, the medicine shadow Folder path as where carrying medical image file in file upload request;
First acquisition unit, for according to the medical image file upload request, obtaining and being integrated in the browser On the corresponding call function of preset function module;The preset function module in the form of file for that will upload medical image The text formatting of the source code of file is converted to the text for the binary format that can be supported by browser and close to machine language Format;
Call unit, for calling the preset function module being integrated on the browser according to the call function, with The preset function module is parsed into the instance objects uploaded in the form of file for realizing medical image file;
Second acquisition unit, for obtaining the file road where the medical image file according to the instance objects Diameter, and obtain according to the medical image file path file where the medical image file;
Uploading unit, for the file where uploading the medical image file to background server.
Optionally, described device further includes:Module generation unit, for generating the preset function module,
The module generation unit, specifically includes:
First obtains subelement, for obtaining for realizing the source code of the upload medical image file in the form of file;
First conversion subunit, for the source code to be converted to LLVM bytecodes;
First processing subelement, for be processed into format to be text formatting is the first preset format by the LLVM bytecodes Javascript language subset;First preset format is the text formatting that browser can identify;
Second processing subelement is preset for the subset of the javascript language to be processed into text formatting for second The file of format;Second preset format is the binary format close to machine language.
Optionally, the source code makes to show a C language.
Optionally, the call unit, specifically includes:
Second obtains subelement, for obtaining store path of the preset function module on the browser;
Third obtains subelement, for obtaining the file that text formatting is the second preset format according to the store path;
Second conversion subunit, for the file of second preset format to be converted to internal storage data;
Instance objects generate subelement, compile and be initialized to be used for by the internal storage data for passing through browser engine Realize the instance objects that medical image file uploads.
Optionally, the second acquisition unit specifically includes:
Reading subunit, for where reading medical image file of the carrying in the medical image file upload request Folder path;
Subelement is traversed, it, will be all over for traversing the medical image file in the file where the medical image file The medical image file cache gone through is to local memory buffering area;
The uploading unit, specifically includes:The medical image file for being buffered in local memory buffering area is sent to backstage Server, so that in the file that background server newly creates the medical image file received write-in.
Compared to the prior art, the application has the advantages that:
Based on above technical scheme it is found that being integrated with preset function module on a web browser, which can will be used for reality The text formatting that the source code of medical image file is now uploaded in the form of file is converted to and can be supported and approached by browser The text formatting of the binary format of machine language.Therefore, the resolution speed of the module and transmission speed are very fast, such browser Engine will not consume more time when parsing the module, can realize user by browser by medical image file with file The whole of the form of folder uploads.
Description of the drawings
In order to which the specific implementation of the application is expressly understood, used when the application specific implementation mode is described below Attached drawing do a brief description.It should be evident that these attached drawings are only the section Examples of the application.
Fig. 1 is that file realizes the interface schematic diagram that file uploads in being pressed from both sides by select file;
Fig. 2 is the generation method flow diagram of preset function module provided by the embodiments of the present application;
Fig. 3 is the method flow schematic diagram provided by the embodiments of the present application that medical image file is uploaded by browser;
Fig. 4 is the structure provided by the embodiments of the present application for uploading the control device of medical image file by browser Schematic diagram;
Fig. 5 is the structural schematic diagram of the device provided by the embodiments of the present application that medical image file is uploaded by browser;
Fig. 6 is module generation unit in the device provided by the embodiments of the present application for uploading medical image file by browser Structural schematic diagram;
Fig. 7 is the knot of resolution unit in the device provided by the embodiments of the present application for uploading medical image file by browser Structure schematic diagram.
Specific implementation mode
In the art, it supports to generally require using C language or C++ to transmit the function of file in the form of file Language is handled to handle, or using flash.And browser only supports Javascipt language at present, does not support other languages Speech, and flash technologies have also gradually been eliminated by browser manufacturer.Therefore, only the browser of Javascipt language is supported not It supports to transmit file in the form of file.
In this way, by current browser, user can only pass through one or more of single choice or multiselect select file underedge A file realizes that local file is uploaded to background server.Fig. 1 is that file is realized on local file in being pressed from both sides by select file The interface schematic diagram of biography.For Medical Imaging, the medical image file of a patient is usually multiple, if by one by one If file uploads, file can be caused to upload and occupy the excessive time, reduce the experience of user's diagosis.
Although in addition, occur to realize with the scheme of the formal transmitting file of file at present, for example, by using NodeJS, The program needs backstage language also to be write with Javascript, and NodeJS is called specially to control local file system Modules modules realize that the module is somewhat like the class libraries in C Plus Plus, but be suitble to using this technical solutions of NodeJS The real-time application of operation data intensity on distributed apparatus is not suitable for the scene that medical image file is browsed in medicine browser Lower use.
It is to be appreciated that in the embodiment of the present application, the medical image file can be digital imaging and communications in medicine (English Language full name is Digital Imaging and Communications in Medicine, english abbreviation DICOM) file.
In order to make browser that user be supported to upload medical image file by browser in the form of file, to save File uplink time, improves the experience of user's diagosis, and the embodiment of the present application provides a kind of by browser upload medical image text The method of part.The method provided by the embodiments of the present application for uploading medical image file by browser mainly includes the following steps that: The medical image file upload request that user is triggered by browser is received, obtains and is integrated in and is on the browser default The corresponding call function of function module, and the preset function module being integrated on the browser is called according to call function, with The module is parsed into the instance objects uploaded in the form of file for realizing medical image file;Finally according to instance objects The folder path where the medical image file is obtained, and the medicine shadow is obtained according to the medical image file path File as where file;File where uploading from the medical image file to background server.
In the method, it is integrated with preset function module on a web browser, which can will be for realizing with file The text formatting that form uploads the source code of medical image file is converted to and can be supported by browser and close to machine language The text formatting of binary format.Therefore, the resolution speed of the module and transmission speed are very fast, and such browser engine is parsing More time will not be consumed when the module, can realize user by browser by medical image file in the form of file It is whole to upload.
Below in conjunction with the accompanying drawings to a kind of the specific of method by browser upload medical image file provided by the present application Embodiment is described in detail.
The specific implementation of the generation method of preset function module is introduced first.
It is to be appreciated that because WebAssembly is another volume that can be run in webpage other than JavaScript Cheng Yuyan.WebAssembly independent of specific physical machine, can abstractively be understood as it be concept machine machine Language, rather than the machine language of actual physical machine.Just because of this, WebAssembly instructions are also sometimes referred to as void Pseudoinstruction.It is more directly mapped to machine code than JavaScript code, it is also represented " how on general hardware More efficiently carry out code " a kind of theory.So it is not mapped directly to the machine code of specific hardware.
Therefore, preset function module, in the embodiment of the present application, preset function are parsed more quickly for the ease of browser Module can be WebAssembly modules.
Illustrate the specific implementation for generating preset function module by taking WebAssembly modules as an example by preset function module below Mode.
Fig. 2 is referred to, the generation method of preset function module provided by the embodiments of the present application includes the following steps:
S201:It obtains for realizing the source code of medical image file is uploaded in the form of file.
It will be understood that being write by programming personnel for realizing the source code for uploading medical image file in the form of file It obtains.
As an example, in order to enable simple and direct, local medical image file, the finger more executed close to CPU are efficiently obtained Enable code, the source code of medical image file that C language can be used to write.
S202:The source code is converted to LLVM bytecodes.
It is to be appreciated that if it is desired to be compiled into WebAssembly from C language, then need to change into source code it will be appreciated that C languages Say code, intermediate code with special format.Currently, the compiler instrument chain for supporting WebAssembly best is LLVM. LLVM is a kind of a kind of technology for optimizing program language compilation time, can faster handle code compilation and generation, therefore, In the embodiment of the present application, the intermediate code of the special format is LLVM bytecodes.LLVM bytecodes are a kind of across the bottom of language Layer Virtual Machine bytecodes, feature are that resolution speed is very fast.Source code processing is converted to the process of LLVM bytecodes to lead to The compilation tool based on LLVM is crossed to realize.
Based on this, in order to realize the fast resolving of source code, this step is converted to source code it will be appreciated that its meaning LLVM bytecodes.
S203:It is the Javascript languages that text formatting is the first preset format that the LLVM bytecodes, which are processed into format, The subset of speech.
It is to be appreciated that in the embodiment of the present application, the first preset format is the text formatting that browser can identify.Due to Browser only supports Javascript language, in order to use the WebAssembly modules in a browser, needs to realize The source code final process of the WebAssembly functions of modules is at the assembler language that can be identified by browser.
As an example, the LLVM words that this step can be obtained above-mentioned steps S202 conversions by compiler EMScripten Section code is processed into the subset of Javascript language.Because browser supports Javascript language, so, it is naturally, clear Device of looking at also supports the subset of Javascript language.
As an example, the text formatting of the subset of Javascript language can be asm.js formats.
S204:The subset of the Javascript language is processed into the file that text formatting is the second preset format.
It is to be appreciated that uploading medical image file in the form of file by browser to realize, then need to realize The source code final process for uploading medical image file in the form of file by browser being capable of resolution speed and biography at one kind The code of defeated speed.And in a browser, the data flow of file transmission is generally binary data stream, therefore, the parsing Speed and the faster code of transmission speed can be a kind of binary formats close to machine code.
Based on this, it is .wasm lattice that this step, which can use WABT tools that the subset of Javascipt language is processed into format, The file of formula..wasm format is a kind of cross-platform binary format close to machine language, by browser with file shape During formula uploads medical image file .wasm formatted files quickly directly can be converted to machine by browser engine Instruction.
It is to be appreciated that the file that the text formatting obtained by S204 is .wasm formats is WebAssembly modules.Cause This, the preset function module generated through the above steps can realize the source generation that medical image file is uploaded in the form of file The text formatting of code is converted to the text formatting for the binary format that can be supported by browser and close to machine language.In this way, Browser engine will not consume more time when parsing the module, improve the resolution speed and transmission speed of the module.
It is provided below for WebAssembly modules as an example, the embodiment of the present application is discussed in detail with preset function module It is a kind of by browser upload medical image file method specific implementation mode.
Fig. 3 is referred to, a kind of method by browser upload medical image file provided by the embodiments of the present application includes Following steps:
S301:The medical image file upload request that is triggered by browser of user is received, on the medical image file Pass the folder path carried in request where medical image file.
It is to be appreciated that uploading medical image file by browser to realize, it is provided with upload medicine in a browser The user interface of image file.In the embodiment of the present application, transmitting file can be provided on the user interface Button.When user wants to upload medical image file, then need to click the button of transmitting file on this to trigger medical image text Then part upload request can pop up request user's input medical image file and be stored in local folder path.Work as user After inputting this document folder path, browser can receive medical image file upload request, search doctor to be uploaded for convenience Image file is learned, the folder path where medical image file is carried in the medical image file upload request.
S302:According to the medical image file upload request, the preset function on the browser is obtained and is integrated in The corresponding call function of module.
As described above, the embodiment of the present application can upload medical image by browser in order to realize in the form of file File will realize this by browser and uploaded in the form of file that the preset function module of medical image file is integrated in advance In browser.As an example, the preset function module can be WebAssembly modules.It is to be appreciated that in the embodiment of the present application In, the preset function module is integrated in a browser, can be specially that preset function module storage is each to realization browser In the file structure of a function.
In this way, browser calls the function during uploading medical image file in the form of file for convenience Module, the embodiment of the present application encapsulate the call function of the function module on a web browser in advance.It is to be appreciated that when browsing After device receives the medical image file upload request that user is triggered by browser, browser is according to the medical image file Upload request obtains call function corresponding with the preset function module being integrated on the browser.
As an example, when the preset function module being integrated on the browser is WebAssembly modules, the calling Function can be loadWebAssembly call functions.
S303:The preset function module being integrated on the browser is called according to the call function, it will be described pre- If function module is parsed into the instance objects uploaded in the form of file for realizing medical image file.
As described above, because the call function of encapsulation on a web browser is opposite with integrated preset function module on a web browser It answers, therefore, can be called a function to call the integrated preset function module on a web browser according to this.
As an example, the specific implementation of S303 may comprise steps of:
A1, store path of the preset function module on the browser is obtained.
As described above, preset function module is integrated on a web browser, it is exactly to browse the storage of preset function module to realization In the file structure of each function of device.Therefore, in order to call the preset function module, the preset function module is required to look up, Therefore, browser needs to obtain the store path of preset function module on a web browser, to be obtained according to the store path To the preset function module.
A2, the file that text formatting is the second preset format is obtained according to the store path.
As described above, it is exactly the file corresponding to preset function module that text format, which is the file of the second preset format,. Therefore, this document is got to be equivalent to get preset function module.
A3, the file of second preset format is converted into internal storage data.
It is to be appreciated that when calling preset function module, need the corresponding code file parsing of the preset function module At instance objects.The corresponding code file of preset function module is parsed into instance objects in order to realize, is needed pre- by second If the file of format is converted into the internal storage data of browser.
In addition, for fit applications Program Interfaces, enhance the binary system processing capacity of Javascript, it is transformed The data structure of internal storage data can be buffer number group (ArrayBuffer).
A4, the internal storage data is compiled and is initialized to upload for realizing medical image file by browser engine Instance objects.
This step can be specially:By using WebAssembly.instantiate () method by the internal storage data Compile and be initialized to the instance objects uploaded for realizing medical image file.The instance objects generated have on file Pass, read the function of local memory space and variable mappings table.
It is to be appreciated that when WebAssembly.instantiate () state becomes resolved, instance objects are returned With the WebAssembly modules after compiling.The source parameters of WebAssembly.instantiate () are substituted for compiling WebAssembly modules afterwards, can generate instance objects.
S304:The folder path where the medical image file is obtained according to the instance objects, and according to described Medical image file path obtains the file where the medical image file;The medical image is uploaded to background server File where file.
The embodiment of the present application is previously mentioned, where carrying medical image file in medical image file upload request Folder path, for calling the call function of preset function module to have with the preset function module being integrated on the browser There is a corresponding relationship, also, obtains one after the parsing of preset function module for realizing medical image file in the form of file The instance objects of upload.Therefore, the path of the file where medical image file can be got according to instance objects, in turn The file for needing to upload is got according to path.Moreover, there is file to upload, read local memory for the instance objects of parsing The functions such as space and variable mappings table, therefore, one of the above-mentioned function based on the instance objects generated, S304 are specific real Existing mode may comprise steps of:
B1:Instance objects read the file carried where the medical image file in medical image file upload request Path.
It is to be appreciated that be encoded with file function reading in preset function module, therefore, parse for realizing medicine The instance objects of image file upload also have corresponding file function reading.It, can be with when this document function reading is run Read the folder path carried where the medical image file in medical image file upload request.
B2:The medical image file in file where traversal medical image file, by the medical image traversed text Part is cached to local memory buffering area.
It is to be appreciated that medical image file is binary file, as an example, step B2 can be specially:B21:Traversal The memory address of file traditional Chinese medicine image file reads the corresponding byte of each medical image file;
B22:According to preceding n (n is positive integer) bit byte, judge whether file type belongs to medical image file, if so, Step B23 is executed, if not, returning to B21.
B23:By the medical image file cache traversed to local memory buffering area (buffer).
B3:It will be buffered in local memory buffering area according to the preset data transmission interface being connect with background server Medical image file be sent to background server so that new create is written in the medical image file received by background server File in.
It is to be appreciated that in background server, in order to store the medical image file for uploading to background server, backstage takes Business device can call I/O functions, to create new folder.The file of the new establishment can carry out binary write operation, After background server often receives a medical image file data, corresponding data will be written in this document folder.
It is the method concrete implementation flow provided by the present application that medical image file is uploaded by browser above.At this Method is obtained and is integrated in and is clear in the specific implementation, receive the medical image file upload request that user is triggered by browser The corresponding call function of preset function module look on device, and called according to call function and be integrated in presetting on the browser Function module, the module is parsed into the instance objects uploaded in the form of file for realizing medical image file;Finally The folder path where the medical image file is obtained according to instance objects, and is obtained according to the medical image file path Take the file where the medical image file;File where uploading from the medical image file to background server. By above step, can finally realize user by browser by medical image file in the form of file on the whole It passes.In the implementation process, the preset function module for being integrated in browser is taken full advantage of to uploading medicine in the form of file The conversion of the source code of image file and processing function, the text formatting that final process obtains are the binary system close to machine language Format.The resolution speed and transmission speed of the module are very fast, and such browser engine will not consume more when parsing the module Time.
Above-described embodiment provide by browser upload medical image method can be as shown in Figure 4 control device hold Row.Control device shown in Fig. 4 includes processor (processor) 410, communication interface (Communications Interface) 420, memory (memory) 430, bus 440.Processor 410, communication interface 420, memory 430 is by total Line 440 completes mutual communication.
Wherein, the logical order that medical image file is uploaded by browser, the storage can be stored in memory 430 Device for example can be nonvolatile memory (non-volatile memory).Processor 410 can call execution memory The logical order that medical image file is uploaded by browser in 430, it is above-mentioned by browser upload medicine shadow to execute As the method for file.It, should can software in order to control by the logical order of browser upload medical image file as embodiment Corresponding program, when processor executes the instruction, control device can accordingly show that the instruction corresponds on display interface Function interface.
If the function of uploading the logical order of medical image file by browser is real in the form of SFU software functional unit Now and when sold or used as an independent product, it can be stored in a computer read/write memory medium.Based in this way Understanding, the technical solution of the disclosure substantially portion of the part that contributes to existing technology or the technical solution in other words Dividing can be expressed in the form of software products, which is stored in a storage medium, including several Instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the application The all or part of step of each embodiment method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD Etc. the various media that can store program code.
The above-mentioned logical order that medical image file is uploaded by browser is properly termed as " uploading and curing by browser Learn the device of image file ", which can be divided into each function module.Referring specifically to following embodiment.
The specific implementation of the device provided by the embodiments of the present application that medical image file is uploaded by browser is described below Mode.
Fig. 5 is referred to, the device provided by the embodiments of the present application that medical image file is uploaded by browser includes following Unit:
Receiving unit 51, the medical image file upload request triggered by browser for receiving user, the medicine The folder path where medical image file is carried in image file upload request;
First acquisition unit 52, for according to the medical image file upload request, obtaining and being integrated in the browsing The corresponding call function of preset function module on device;The preset function module in the form of file for that will upload medicine shadow As the text formatting of the source code of file is converted to the text for the binary format that can be supported by browser and close to machine language This format;
Call unit 53, for calling the preset function module being integrated on the browser according to the call function, The preset function module is parsed into the instance objects uploaded in the form of file for realizing medical image file;
Second acquisition unit 54, for obtaining the file road where the medical image file according to the instance objects Diameter, and obtain according to the medical image file path file where the medical image file;
Uploading unit 55, for the file where uploading the medical image file to background server.
Optionally, above-mentioned apparatus can also include:Module generation unit 56, for generating the preset function module, Fig. 6 It is the structural schematic diagram of module generation unit in the application device embodiment.Module generation unit 56, specifically includes:
First obtains subelement 561, for obtaining for realizing the source generation of the upload medical image file in the form of file Code;C language can be used to write for source code;
First conversion subunit 562, for the source code to be converted to LLVM bytecodes;
First processing subelement 563, for be processed into format to be text formatting is first to preset by the LLVM bytecodes The subset of the javascript language of format;
Second processing subelement 564 is second for the subset of the javascript language to be processed into text formatting The file of preset format;Second preset format is the binary format close to machine language.
It is the structural schematic diagram of call unit 53 in the application device embodiment referring to Fig. 7.Call unit 53, it is specific to wrap It includes:
Second obtains subelement 531, for obtaining store path of the preset function module on the browser;
Third obtains subelement 532, for obtaining the text that text formatting is the second preset format according to the store path Part;
Second conversion subunit 533, for the file of second preset format to be converted to internal storage data;
Instance objects generate subelement 534, and the internal storage data is compiled and is initialized to for passing through browser engine The instance objects uploaded for realizing medical image file.
In addition, second acquisition unit 54 can specifically include:
Reading subunit, for where reading medical image file of the carrying in the medical image file upload request Folder path;
Subelement is traversed, it, will be all over for traversing the medical image file in the file where the medical image file The medical image file cache gone through is to local memory buffering area.
Uploading unit 55 can be specifically used for the medical image file for being buffered in local memory buffering area being sent to backstage Server, so that in the file that background server newly creates the medical image file received write-in.
It is a kind of device embodiment uploading medical image file by browser provided by the present application, fields above Technical staff can be understood that, for convenience and simplicity of description, the device of foregoing description and the specific works of unit Process can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.In the device embodiment, pass through mould The preset function module that block generation unit 56 is generated, it will be able to which the source code of medical image file is converted and is processed into close The binary format of machine language, and then will not consume more time when the browser resolves module.
In the concrete structure of the device, receiving unit 51 is for receiving the medical image that user is triggered by browser File upload request, first acquisition unit 52 are used to obtain call function corresponding with the medical image file upload request, Call unit 53 is used to call the preset function module being integrated on the browser according to call function, which is parsed At the instance objects uploaded in the form of file for realizing medical image file;Second acquisition unit 54 is used for according to example pair Folder path as where obtaining the medical image file, and the medicine is obtained according to the medical image file path File where image file;Uploading unit 55 upload the medical image file to background server where file. By above functions unit, entirety of the user by browser by medical image file in the form of file can be finally realized It uploads.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit It connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, logistics management server or the network equipment etc.) executes described in each embodiment of the application The all or part of step of method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with Store the medium of program code.
The above, above example are only to illustrate the technical solution of the application, rather than its limitations;Although with reference to before Embodiment is stated the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding The technical solution recorded in each embodiment is stated to modify or equivalent replacement of some of the technical features;And these Modification or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method uploading medical image file by browser, which is characterized in that the method includes:
The medical image file upload request that user is triggered by browser is received, is taken in the medical image file upload request With the folder path where medical image file;
According to the medical image file upload request, obtain corresponding with the preset function module being integrated on the browser Call function;The preset function module is used to that the text formatting of the source code of medical image file will to be uploaded in the form of file It is converted to the text formatting for the binary format that can be supported by browser and close to machine language;
The preset function module being integrated on the browser is called according to the call function, by the preset function module It is parsed into the instance objects uploaded in the form of file for realizing medical image file;
The folder path where the medical image file is obtained according to the instance objects, and according to medical image text Part path obtains the file where the medical image file;Where the medical image file being uploaded to background server File.
2. according to the method described in claim 1, it is characterized in that, the method further includes:The preset function module is generated,
It is described to generate the preset function module, it specifically includes:
It obtains for realizing the source code of medical image file is uploaded in the form of file;
The source code is converted to LLVM bytecodes;
The LLVM bytecodes are processed into the subset that format is the javascript language that text formatting is the first preset format; First preset format is the text formatting that browser can identify;
The subset of the javascript language is processed into the file that text formatting is the second preset format;Described second is default Format is the binary format close to machine language.
3. according to the method described in claim 2, it is characterized in that, the source code makes to show a C language.
4. according to the method described in claim 1, it is characterized in that, it is described by the preset function module be parsed into for realizing The instance objects that medical image file is uploaded in the form of file, specifically include:
Obtain store path of the preset function module on the browser;
The file that text formatting is the second preset format is obtained according to the store path;
The file of second preset format is converted into internal storage data;
The example for compiling and being initialized to upload for realizing medical image file by the internal storage data by browser engine Object.
5. according to claim 1-4 any one of them methods, which is characterized in that described according to described in instance objects acquisition Folder path where medical image file, and the medical image file institute is obtained according to the medical image file path File;File where uploading from the medical image file to background server, specifically includes:
Read the folder path carried where the medical image file in the medical image file upload request;
The medical image file in the file where the medical image file is traversed, the medical image file traversed is delayed It is stored to local memory buffering area;
The medical image file for being buffered in local memory buffering area is sent to background server, so that background server will receive To the file that newly creates of medical image file write-in in.
6. a kind of device uploading medical image file by browser, which is characterized in that described device includes:
Receiving unit, the medical image file upload request triggered by browser for receiving user, the medical image text The folder path where medical image file is carried in part upload request;
First acquisition unit, for according to the medical image file upload request, obtaining and being integrated on the browser The corresponding call function of preset function module;The preset function module in the form of file for that will upload medical image file The text formatting of source code be converted to and can be supported by browser and the text formatting of binary format close to machine language;
Call unit, for calling the preset function module being integrated on the browser according to the call function, by institute It states preset function module and is parsed into the instance objects uploaded in the form of file for realizing medical image file;
Second acquisition unit, for obtaining the folder path where the medical image file according to the instance objects, and The file where the medical image file is obtained according to the medical image file path;
Uploading unit, for the file where uploading the medical image file to background server.
7. device according to claim 6, which is characterized in that described device further includes:Module generation unit, for generating The preset function module,
The module generation unit, specifically includes:
First obtains subelement, for obtaining for realizing the source code of the upload medical image file in the form of file;
First conversion subunit, for the source code to be converted to LLVM bytecodes;
First processing subelement, for be processed into format to be text formatting is the first preset format by the LLVM bytecodes The subset of javascript language;First preset format is the text formatting that browser can identify;
Second processing subelement is the second preset format for the subset of the javascript language to be processed into text formatting File;Second preset format is the binary format close to machine language.
8. device according to claim 7, which is characterized in that the source code makes to show a C language.
9. device according to claim 6, which is characterized in that the call unit specifically includes:
Second obtains subelement, for obtaining store path of the preset function module on the browser;
Third obtains subelement, for obtaining the file that text formatting is the second preset format according to the store path;
Second conversion subunit, for the file of second preset format to be converted to internal storage data;
Instance objects generate subelement, for pass through browser engine by the internal storage data compile and be initialized to for realizing The instance objects that medical image file uploads.
10. according to claim 6-9 any one of them devices, which is characterized in that the second acquisition unit specifically includes:
Reading subunit, for reading the text where carrying the medical image file in the medical image file upload request Part presss from both sides path;
Subelement is traversed, for traversing the medical image file in the file where the medical image file, will be traversed Medical image file cache to local memory buffering area;
The uploading unit, specifically includes:The medical image file for being buffered in local memory buffering area is sent to background service Device, so that in the file that background server newly creates the medical image file received write-in.
CN201810299610.4A 2018-04-04 2018-04-04 Method and device for uploading medical image file through browser Active CN108563728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810299610.4A CN108563728B (en) 2018-04-04 2018-04-04 Method and device for uploading medical image file through browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810299610.4A CN108563728B (en) 2018-04-04 2018-04-04 Method and device for uploading medical image file through browser

Publications (2)

Publication Number Publication Date
CN108563728A true CN108563728A (en) 2018-09-21
CN108563728B CN108563728B (en) 2021-01-19

Family

ID=63534114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810299610.4A Active CN108563728B (en) 2018-04-04 2018-04-04 Method and device for uploading medical image file through browser

Country Status (1)

Country Link
CN (1) CN108563728B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058904A (en) * 2019-04-24 2019-07-26 广东三维家信息科技有限公司 Data transfering method, device and server
CN110765381A (en) * 2019-10-10 2020-02-07 许昌许继软件技术有限公司 Web publishing method and system of distribution network main station based on WebAssembly technology
CN112951382A (en) * 2021-02-04 2021-06-11 慧影医疗科技(北京)有限公司 Medical image anonymous uploading method and system
CN115116585A (en) * 2022-07-14 2022-09-27 杭州华卓信息科技有限公司 Web-based local DICOM file rendering method and device
CN116319763A (en) * 2023-05-19 2023-06-23 北京长亭科技有限公司 File uploading method and device based on WASM technology

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014154A (en) * 2010-11-05 2011-04-13 山东科技大学 Grid service-based remote sensing image extraction and sharing system and method
CN102932463A (en) * 2012-11-07 2013-02-13 曙光信息产业股份有限公司 Method and system for uploading data
CN103226564A (en) * 2012-01-31 2013-07-31 佳能株式会社 Document management server and document management method
US20150154059A1 (en) * 2012-08-16 2015-06-04 Tencent Technology (Shenzhen) Company Limited Method and apparatus for implementing extended application
CN104796477A (en) * 2015-04-26 2015-07-22 天津立言科技有限公司 Document uploading method, device and system
CN106878428A (en) * 2017-02-23 2017-06-20 郑州云海信息技术有限公司 Method and device that a kind of file is uploaded

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014154A (en) * 2010-11-05 2011-04-13 山东科技大学 Grid service-based remote sensing image extraction and sharing system and method
CN103226564A (en) * 2012-01-31 2013-07-31 佳能株式会社 Document management server and document management method
US20150154059A1 (en) * 2012-08-16 2015-06-04 Tencent Technology (Shenzhen) Company Limited Method and apparatus for implementing extended application
CN102932463A (en) * 2012-11-07 2013-02-13 曙光信息产业股份有限公司 Method and system for uploading data
CN104796477A (en) * 2015-04-26 2015-07-22 天津立言科技有限公司 Document uploading method, device and system
CN106878428A (en) * 2017-02-23 2017-06-20 郑州云海信息技术有限公司 Method and device that a kind of file is uploaded

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058904A (en) * 2019-04-24 2019-07-26 广东三维家信息科技有限公司 Data transfering method, device and server
CN110765381A (en) * 2019-10-10 2020-02-07 许昌许继软件技术有限公司 Web publishing method and system of distribution network main station based on WebAssembly technology
CN110765381B (en) * 2019-10-10 2022-05-24 许昌许继软件技术有限公司 Web publishing method and system of distribution network main station based on WebAssembly technology
CN112951382A (en) * 2021-02-04 2021-06-11 慧影医疗科技(北京)有限公司 Medical image anonymous uploading method and system
CN112951382B (en) * 2021-02-04 2023-09-29 慧影医疗科技(北京)股份有限公司 Anonymous uploading method and system for medical images
CN115116585A (en) * 2022-07-14 2022-09-27 杭州华卓信息科技有限公司 Web-based local DICOM file rendering method and device
CN115116585B (en) * 2022-07-14 2023-10-03 杭州华卓信息科技有限公司 Web-based local DICOM file rendering method and device
CN116319763A (en) * 2023-05-19 2023-06-23 北京长亭科技有限公司 File uploading method and device based on WASM technology
CN116319763B (en) * 2023-05-19 2023-08-11 北京长亭科技有限公司 File uploading method and device based on WASM technology

Also Published As

Publication number Publication date
CN108563728B (en) 2021-01-19

Similar Documents

Publication Publication Date Title
CN108563728A (en) A kind of method and apparatus that medical image file is uploaded by browser
WO2018072626A1 (en) Method and apparatus for invoking component, and method and apparatus for processing component data
US9892144B2 (en) Methods for in-place access of serialized data
CN104731589A (en) Automatic generation method and device of user interface (UI)
KR102348766B1 (en) Data processing methods and devices
TWI525543B (en) Hybrid dynamic code compiling device, method, and service system thereof
CN102023856A (en) Method for outputting and operating data at server in formatting way according to demands of user
CA2446082A1 (en) Single file serialization for physical and logical meta-model information
US11474796B1 (en) Build system for distributed applications
CN107301137A (en) RSET interface realizing methods and device and electronic equipment and computer-readable recording medium
US20150113506A1 (en) Method and system for adaptive loading of application
CN111723314B (en) Webpage display method and device, electronic equipment and computer readable storage medium
US9129035B2 (en) Systems, methods, and apparatus for accessing object representations of data sets
CN103501341A (en) Method and device for establishing Web service
CN103458037A (en) Method and device for providing complex web applications in resource-constrained environment
Paternò et al. Automatically adapting web sites for mobile access through logical descriptions and dynamic analysis of interaction resources
CN109460227A (en) A kind of development approach of Website front-end, device, equipment and medium
US20160350089A1 (en) Code caching system
US8677332B1 (en) Executing multiple child code blocks via a single compiled parent code block
US9015682B1 (en) Computer code transformations to create synthetic global scopes
CN109408057B (en) Method, device, medium and computing equipment for automatically generating codes
US10659321B2 (en) Electronic apparatus for recording debugging information and control method thereof
WO2022135592A1 (en) Method and apparatus for generating model training program mirror image, device, and storage medium
CN114861103A (en) Page backtracking method and device, medium and electronic equipment thereof
CN115934093A (en) Applet cross-terminal application method, related device and computer storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 110179 No. 177-1 Innovation Road, Hunnan District, Shenyang City, Liaoning Province

Applicant after: DongSoft Medical System Co., Ltd.

Address before: 110179 No. 177-1 Innovation Road, Hunnan District, Shenyang City, Liaoning Province

Applicant before: Dongruan Medical Systems Co., Ltd., Shenyang

GR01 Patent grant
GR01 Patent grant