CN107707450A - A kind of method, apparatus and computer-readable recording medium for transmitting file - Google Patents

A kind of method, apparatus and computer-readable recording medium for transmitting file Download PDF

Info

Publication number
CN107707450A
CN107707450A CN201710723570.7A CN201710723570A CN107707450A CN 107707450 A CN107707450 A CN 107707450A CN 201710723570 A CN201710723570 A CN 201710723570A CN 107707450 A CN107707450 A CN 107707450A
Authority
CN
China
Prior art keywords
file
terminal
file format
format
transmission
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.)
Withdrawn
Application number
CN201710723570.7A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710723570.7A priority Critical patent/CN107707450A/en
Publication of CN107707450A publication Critical patent/CN107707450A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Abstract

The embodiments of the invention provide a kind of method for transmitting file, including:When first terminal is needed to one or more second terminals transmission file, judge the second terminal of the file format for the file for not supporting to send be present, a kind of file format that the second terminal of the file format for the file that the file format of the file of transmission is converted into not support to send is supported, the file after conversion is sent to the second terminal of the file format for the file for not supporting to send.Present invention also offers a kind of device and computer-readable recording medium for transmitting file, pass through the technical scheme of the embodiment of the present invention, when first terminal sends file to second terminal, the file format of the file of transmission is first converted into the file format of second terminal support, it is then forwarded to second terminal, the compatibility that file is transmitted between first terminal and second terminal is improved, so as to improve Consumer's Experience.

Description

A kind of method, apparatus and computer-readable recording medium for transmitting file
Technical field
The present invention relates to intelligent terminal technology, espespecially a kind of method, apparatus and computer-readable storage medium for transmitting file Matter.
Background technology
With the popularization of various mobile devices, the increasing of network broadband, user relies on mobile terminal further.Due to movement It is convenient that end carries, and user is more likely to complete what is handled in conventional personal computer (PC, Personal Computer) in mobile terminal All kinds of affairs, more particularly to the processing in terminal to file.
Due to the various needs for working, living etc., user usually requires to send and shares some files, file in terminal room Txt, doc, pdf, vcf of type such as text formatting etc..Because mobile terminal supports file format limited, different terminal-pair File process ability is different, such as can open pdf files in terminal A, and the file of the form can not be opened on terminal B.
Therefore, if terminal A and (wechat is individually chatted or wechat group chat) in terminal B conversation procedures, terminal A needs to incite somebody to action this The pdf formatted files on ground are sent to terminal B, terminal B after receiving this file, because terminal B does not support pdf formatted files Open, if so terminal B needs to open the pdf files, need to download related document reader.Experience is not very good.
The content of the invention
The embodiments of the invention provide a kind of method, apparatus and computer-readable recording medium for transmitting file, Neng Gouti The compatibility of high different terminals transmission file, so as to improve Consumer's Experience.
The embodiments of the invention provide a kind of method for transmitting file, including:
When first terminal is needed to one or more second terminals transmission file, judge to exist and do not support what is sent The second terminal of the file format of file, the file format of the file of transmission is converted into not supporting to the tray of the file of transmission A kind of file format that the second terminal of formula is supported, the file after conversion is sent to the file format for the file for not supporting to send Second terminal.
Optionally, this method also includes:
When the first terminal judges to exist the second terminal of the file format for the file for supporting to send, by the hair The file sent is sent to the second terminal of the file format for the file for supporting to send.
Optionally, also include before this method:
After the first terminal establishes session with the second terminal, pass through all second terminal branch of the session of foundation The file format held, and preserve the corresponding relation between the second terminal and the file format of support.
Optionally, the second terminal for judging to have the file format for the file for not supporting to send includes:
In corresponding relation of the first terminal between the terminal and the file format of support, all described the are searched The file format supported corresponding to two terminals;
Judge that the file format that the support found be present does not include the second of file format of the file of the transmission Terminal, it is determined that the second terminal of the file format in the presence of the file for not supporting to send;
The file format of the file by transmission is converted into not supporting the second terminal of the file format of the file of transmission A kind of file format supported includes:
The second terminal of the file format of the file sent is not supported for each, the first terminal is judged described Destination file format be present in the file format of the support found, the file format of the file of the transmission is converted into described Destination file format;Wherein, the file type of the destination file format and text belonging to the file format of the file of the transmission Part type is identical.
Optionally, this method also includes:
The first terminal is judged after destination file format being present in the file format of the support found, described to send out The file format of the file sent is converted into before destination file format, judges itself possess the file of the file of the transmission Form is converted into the ability of destination file format, and the file format for continuing executing with the file by transmission is converted into file destination The step of form.
Optionally, this method also includes:
The file format of the file of the transmission is converted into the ability of destination file format when judging itself not possessing When, the file of the transmission is sent to file conversion service device by the first terminal, so that the file conversion service device will The file format of the file of the transmission is converted into the destination file format;
The first terminal receives the file after the conversion from the file conversion service device, by the file after conversion It is sent to the second terminal.
Optionally, the destination file format is:
In file type identical file format described in affiliated file type and the file format of the file of the transmission Any one;
Or affiliated file type and file type identical file format described in the file format of the file of the transmission In, the most fast file format of conversion speed.
The embodiment of the present invention also proposed a kind of terminal, including processor and computer-readable recording medium, the calculating Instruction is stored with machine readable storage medium storing program for executing, when the instruction is by the computing device, realizes any one above-mentioned transmission The method of file.
The embodiment of the present invention also proposed a kind of computer-readable recording medium, be stored thereon with computer program, described The step of method of any one above-mentioned transmission file is realized when computer program is executed by processor.
Technical scheme of the embodiment of the present invention includes:First terminal needs to send file to one or more second terminals When, judge the second terminal of the file format for the file for not supporting to send be present, the file format of the file of transmission is changed A kind of file format supported into the second terminal of the file format for the file for not supporting to send, the file after conversion is sent to Do not support the second terminal of the file format of the file sent.By the technical scheme of the embodiment of the present invention, first terminal to When second terminal sends file, the file format of the file of transmission is first converted into the file format of second terminal support, then sent out Second terminal is given, the compatibility that file is transmitted between first terminal and second terminal is improved, so as to improve Consumer's Experience.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the hardware configuration signal for the mobile terminal for realizing each embodiment of the present invention;
The schematic diagram for the communication system that Fig. 2 is communicated between support mobile terminal of the present invention;
Fig. 3 is the flow chart for the method that the embodiment of the present invention transmits file;
Fig. 4 is the flow chart for the method that example of the embodiment of the present invention 1 transmits file;
Fig. 5 is the flow chart for the method that example of the embodiment of the present invention 2 transmits file;
Fig. 6 is the structure composition schematic diagram of terminal of the embodiment of the present invention.
Embodiment
Technical scheme is described in detail below in conjunction with drawings and Examples.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Referring to Fig. 3, according to one embodiment of present invention, there is provided a kind of method for transmitting file, including:
When step 300, first terminal are needed to one or more second terminals transmission file, judge to exist and do not prop up The second terminal of the file format of the file of transmission is held, the file format of the file of transmission is converted into not support the file sent File format second terminal support a kind of file format.
In this step, the second terminal for judging to have the file format for the file for not supporting to send includes:
In corresponding relation of the first terminal between the terminal and the file format of support pre-set, all second is searched The file format supported corresponding to terminal;
Judge that the file format that the support found be present does not include the second terminal of file format of the file sent, It is determined that the second terminal of the file format in the presence of the file for not supporting to send.
In this step, the file format of the file of transmission is converted into not supporting to the second of the file format of the file of transmission During a kind of file format that terminal is supported, if the second terminal of the file format for the file for not supporting to send supports another kind File format, then the file format of the file of transmission being converted into not supporting, the second of the file format of the file of transmission is whole Hold a kind of file format supported;
, can be with if the second terminal of file format for the file for not supporting to send supports different file formats respectively The file format of the file of transmission is converted into the second terminal branch of the file format of each file for not supporting to send respectively A kind of file format held;The embodiment of the present invention is not construed as limiting to this.
For example, first terminal sends pdf files, the second terminal for not supporting pdf be present, if not supporting the second of pdf Terminal supports doc, then pdf files is converted into doc files.
Such as fruit part second terminal support doc, part second terminal supports docx, then pdf files is converted into doc files With docx files, doc files are sent to the second terminal for supporting doc, docx files are sent to the second end for supporting docx End.
The second terminal of the file format for the file that the file format of the file of transmission is converted into not support to send is supported A kind of file format include:
The second terminal of the file format of the file sent is not supported for each, first terminal judges what is found Destination file format be present in the file format of support, the file format of the file of transmission is converted into destination file format;Its In, the affiliated file type of file format of file of the file type of destination file format with sending is identical.
Wherein, destination file format is:
Affiliated file type and any one in the file format file type identical file format of the file sent;
Or affiliated file type is with the file format file type identical file format of the file sent, changing Fastest file format.
Wherein it is possible to file format is classified.For example, text class file format (such as pdf, doc, docx, txt, Vcf etc.), the file format of video class, the file format of audio class (such as mp3, mp4), the file format of picture category (such as bmp, Jpg, tif etc.) etc..
Wherein, for the file format of files classes, the most fast file format of conversion speed is txt.
File after conversion is sent to the second of the file format for the file for not supporting to send by step 301, first terminal Terminal.
Optionally, this method also includes:
When first terminal judges to exist the second terminal of the file format for the file for supporting to send, by the file of transmission It is sent to the second terminal of the file format for the file for supporting to send.
Optionally, also include before this method:
After first terminal establishes session with all second terminals, supported by all second terminals of the acquisition conversation of foundation File format, and preserve the corresponding relation between second terminal and the file format of support.
Optionally, after first terminal and all second terminals establish session, the text of being supported itself by the session of foundation Part form is sent to all second terminals.
Wherein, for example, the session that first terminal is established with second terminal can be the meeting in the chat softwares such as wechat, QQ Words or other sessions, the embodiment of the present invention are not construed as limiting to this.
Can be group chat when first terminal and two or more second terminals establish session.
Wherein, first terminal can by the way of the corresponding relation by all second terminals of the acquisition conversation of foundation come Obtain the file format that all second terminals are supported.
That is, after first terminal establishes session with all second terminals, each second terminal obtains itself branch The file format held, and it is sent to first terminal and other second terminals.
After first terminal receives the file format itself supported of second terminal transmission, second terminal and support are preserved Corresponding relation between file format.
Wherein, the text that second terminal can be supported itself by background message while message is sent to first terminal Part form is sent to first terminal, directly can also be sent out the file format itself supported by background message after session is established First terminal is given, the embodiment of the present invention is not construed as limiting to this.
Optionally, this method also includes:
First terminal is judged after destination file format being present in the file format of the support found, by the file of transmission File format be converted into before destination file format, judge itself to possess the file format of the file of transmission be converted into mesh The ability of file format is marked, continues executing with the step of file format of the file of transmission is converted into destination file format.
Optionally, this method also includes:
When judge itself not possessing the file format of the file of transmission is converted into the ability of destination file format when, The file of transmission is sent to file conversion service device by one terminal, so that file conversion service device is by the tray of the file of transmission Formula is converted into destination file format;
First terminal receives the file after the conversion from file conversion service device, and the file after conversion is sent into Two terminals.
Pass through the technical scheme of the embodiment of the present invention, because different terminals are different to the disposal ability of file, same text When sharing to other recipients by sender, recipient there may be the problem of can not opening file part, therefore, first eventually When holding to second terminal transmission file, the file format of the file of transmission is first converted into the file format of second terminal support, Second terminal is then forwarded to, so, second terminal is in the file format for the file for not supporting to send, it is not necessary to downloads transmission The reader of the file format of file opens the file of transmission, improves and file is transmitted between first terminal and second terminal Compatibility, so as to improve Consumer's Experience.
Describe the realization of the above method in detail below by two examples, other situations are by that analogy.
Example 1
Referring to Fig. 4, this method includes:
Step 400, terminal 1 and terminal 2 establish session.
Step 401, terminal 2 send the file format of the support of terminal 2 to terminal 1, and terminal 1 preserves terminal 2 and the text supported Corresponding relation between part form;Terminal 1 sends the file format of the support of terminal 1 to terminal 2 simultaneously, and terminal 2 preserves the He of terminal 1 Corresponding relation between the file format of support.
Step 402, when terminal 1 need to terminal 2 send file when, terminal 1 is searched corresponding to terminal 2 in corresponding relation Whether the file format of support, the file format for judging to support corresponding to terminal 2 include the file format of the file sent, if Including then performing step 403, and terminate this flow;If do not included, step 404 is continued executing with.
Step 403, terminal 1 send the file to terminal 2.
Step 404, terminal 1 judge whether itself possesses the ability that the file of file is converted into destination file format, such as Fruit possesses, then performs step 405;If do not possessed, step 406 is performed.
The file format of file is converted into destination file format by step 405, terminal 1, and the file after conversion is sent to Terminal 2.
Step 406, terminal 1 send the file to file conversion service device, and file server turns the file format of file Change destination file format into, the file after conversion is sent to terminal 1, the file after conversion is sent to terminal 2 by terminal 1.
Example 2
Referring to Fig. 5, this method includes:
Step 500, terminal 1, terminal 2 and terminal 3 establish session.
Step 501, terminal 2 and terminal 3 send the file format itself supported to terminal 1, and terminal 1 preserves terminal 2 and branch Corresponding relation and terminal 3 between the file format held and the corresponding relation between the file format of support.
In this step, while terminal 1 sends the file format of the support of terminal 1, terminal 2 and terminal 3 to terminal 2 and terminal 3 Preserve the corresponding relation between terminal 1 and the file format supported;
Terminal 2 also sends the file format of the support of terminal 2 to terminal 3, and terminal 3 preserves terminal 2 and the file format supported Between corresponding relation;
Terminal 3 also sends the file format of the support of terminal 3 to terminal 2, and terminal 2 preserves terminal 3 and the file format supported Between corresponding relation.
Step 502, when terminal 1 needs to send file to terminal 2 and terminal 3, terminal 1 searches terminal in corresponding relation The file format supported corresponding to the file format and terminal 3 supported corresponding to 2, judge to support corresponding to terminal 2 and terminal 3 File format whether include the file format of the file sent, if included, perform step 503, and terminate this stream Journey;If do not included, step 504 is continued executing with.
Step 503, terminal 1 send the file to terminal 2 and terminal 3.
Step 504, terminal 1 judge whether itself possesses the ability that the file of file is converted into destination file format, such as Fruit possesses, then performs step 505;If do not possessed, step 506 is performed.
The file format of file is converted into destination file format by step 505, terminal 1, and the file after conversion is sent to Terminal 2 and terminal 3.
Step 506, terminal 1 send the file to file conversion service device, and file server turns the file format of file Change destination file format into, the file after conversion is sent to terminal 1, the file after conversion is sent to terminal 2 and end by terminal 1 End 3.
Referring to Fig. 6, according to another embodiment of the present invention, there is provided a kind of terminal, including processor and computer-readable Storage medium, instruction is stored with the computer-readable recording medium, when the instruction is by the computing device, realize Following steps:
When needing to one or more second terminals transmission file, judge the text for the file for not supporting to send be present The second terminal of part form, the file format of the file of transmission is converted into not supporting to the second of the file format of the file of transmission A kind of file format that terminal is supported, second that the file after conversion is sent to the file format for the file for not supporting to send are whole End.
Optionally, following steps are also realized when the instruction is executed by processor:
When judging to exist the second terminal of file format for the file for supporting to send, the file of the transmission is sent Second terminal to the file format for the file for supporting to send.
Optionally, following steps are also realized when the instruction is executed by processor:
After establishing session with the second terminal, pass through the tray of all second terminals supports of the session of foundation Formula, and preserve the corresponding relation between the second terminal and the file format of support.
Optionally, realize to judge to exist in the following ways when the instruction is executed by processor and do not support what is sent The second terminal of the file format of file:
In corresponding relation between the terminal and the file format of support, search corresponding to all second terminals The file format of support;
Judge that the file format that the support found be present does not include the second of file format of the file of the transmission Terminal, it is determined that the second terminal of the file format in the presence of the file for not supporting to send;
Realize that the file format of the file by transmission turns in the following ways when the instruction is executed by processor Change a kind of file format that the second terminal of the file format for the file for not supporting to send is supported into:
The second terminal of the file format of the file sent is not supported for each, the first terminal is judged described Destination file format be present in the file format of the support found, the file format of the file of the transmission is converted into described Destination file format;Wherein, the file type of the destination file format and text belonging to the file format of the file of the transmission Part type is identical.
Optionally, following steps are also realized when the instruction is executed by processor:
Judge itself possess the ability that the file format of the file of the transmission is converted into destination file format, continue Perform the step of file format of the file by transmission is converted into destination file format.
Optionally, following steps are also realized when the instruction is executed by processor:
The file format of the file of the transmission is converted into the ability of destination file format when judging itself not possessing When, the file of the transmission is sent to file conversion service device, so that the file conversion service device is by the text of the transmission The file format of part is converted into the destination file format;
The file after the conversion from the file conversion service device is received, the file after conversion is sent to described Two terminals.
According to still another embodiment of the invention, there is provided a kind of computer-readable recording medium, be stored thereon with computer Program, the program realize following steps when being executed by processor:
When needing to one or more second terminals transmission file, judge the text for the file for not supporting to send be present The second terminal of part form, the file format of the file of transmission is converted into not supporting to the second of the file format of the file of transmission A kind of file format that terminal is supported, second that the file after conversion is sent to the file format for the file for not supporting to send are whole End.
Optionally, following steps are also realized when said program is executed by a processor:
When judging to exist the second terminal of file format for the file for supporting to send, the file of the transmission is sent Second terminal to the file format for the file for supporting to send.
Optionally, following steps are also realized when said program is executed by a processor:
After establishing session with the second terminal, pass through the tray of all second terminals supports of the session of foundation Formula, and preserve the corresponding relation between the second terminal and the file format of support.
Optionally, realize to judge to exist in the following ways when the instruction is executed by processor and do not support what is sent The second terminal of the file format of file:
In corresponding relation between the terminal and the file format of support, search corresponding to all second terminals The file format of support;
Judge that the file format that the support found be present does not include the second of file format of the file of the transmission Terminal, it is determined that the second terminal of the file format in the presence of the file for not supporting to send;
Realize that the file format of the file by transmission turns in the following ways when said program is executed by a processor Change a kind of file format that the second terminal of the file format for the file for not supporting to send is supported into:
The second terminal of the file format of the file sent is not supported for each, the first terminal is judged described Destination file format be present in the file format of the support found, the file format of the file of the transmission is converted into described Destination file format;Wherein, the file type of the destination file format and text belonging to the file format of the file of the transmission Part type is identical.
Optionally, following steps are also realized when said program is executed by a processor:
Judge itself possess the ability that the file format of the file of the transmission is converted into destination file format, continue Perform the step of file format of the file by transmission is converted into destination file format.
Optionally, following steps are also realized when said program is executed by a processor:
The file format of the file of the transmission is converted into the ability of destination file format when judging itself not possessing When, the file of the transmission is sent to file conversion service device, so that the file conversion service device is by the text of the transmission The file format of part is converted into the destination file format;
The file after the conversion from the file conversion service device is received, the file after conversion is sent to described Two terminals.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (9)

  1. A kind of 1. method for transmitting file, it is characterised in that including:
    When first terminal is needed to one or more second terminals transmission file, judge the file for not supporting to send be present File format second terminal, the file format for the file that the file format of the file of transmission is converted into not supporting sending A kind of file format that second terminal is supported, the file after conversion is sent to the of the file format for the file for not supporting to send Two terminals.
  2. 2. according to the method for claim 1, it is characterised in that this method also includes:
    When the first terminal judges to exist the second terminal of the file format for the file for supporting to send, by the transmission File is sent to the second terminal of the file format for the file for supporting to send.
  3. 3. method according to claim 1 or 2, it is characterised in that also include before this method:
    After the first terminal establishes session with the second terminal, supported by all second terminals of the session of foundation File format, and preserve the corresponding relation between the second terminal and the file format of support.
  4. 4. according to the method for claim 3, it is characterised in that the file for judging to have the file for not supporting to send The second terminal of form includes:
    In corresponding relation of the first terminal between the terminal and the file format of support, all described second are searched eventually The file format supported corresponding to end;
    Judge that the file format that the support found be present does not include the second terminal of file format of the file of the transmission, It is determined that the second terminal of the file format in the presence of the file for not supporting to send;
    The second terminal of the file format for the file that the file format of the file by transmission is converted into not supporting to send is supported A kind of file format include:
    The second terminal of the file format of the file sent is not supported for each, the first terminal judges the lookup To support file format in destination file format be present, the file format of the file of the transmission is converted into the target File format;Wherein, the file type of the destination file format and the affiliated files classes of file format of the file of the transmission Type is identical.
  5. 5. according to the method for claim 4, it is characterised in that this method also includes:
    The first terminal judged after destination file format being present in the file format of the support found, described by transmission The file format of file is converted into before destination file format, judges itself possess the file format of the file of the transmission The ability of destination file format is converted into, the file format for continuing executing with the file by transmission is converted into destination file format The step of.
  6. 6. according to the method for claim 5, it is characterised in that this method also includes:
    When judge itself not possessing the file format of the file of the transmission is converted into the ability of destination file format when, institute State first terminal and the file of the transmission is sent to file conversion service device, so that the file conversion service device is by the hair The file format of the file sent is converted into the destination file format;
    The first terminal receives the file after the conversion from the file conversion service device, and the file after conversion is sent To the second terminal.
  7. 7. according to the method described in claim 4 or 5 or 6 any one, it is characterised in that the destination file format is:
    Affiliated file type with it is any in file type identical file format described in the file format of the file of the transmission It is a kind of;
    Or in file type identical file format described in affiliated file type and the file format of the file of the transmission, The most fast file format of conversion speed.
  8. 8. a kind of terminal, including processor and computer-readable recording medium, it is stored with the computer-readable recording medium Instruction, it is characterised in that when the instruction is by the computing device, realize as described in claim 1~7 any one The method for transmitting file.
  9. 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt The step of method of the transmission file as described in claim 1~7 any one is realized during computing device.
CN201710723570.7A 2017-08-22 2017-08-22 A kind of method, apparatus and computer-readable recording medium for transmitting file Withdrawn CN107707450A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710723570.7A CN107707450A (en) 2017-08-22 2017-08-22 A kind of method, apparatus and computer-readable recording medium for transmitting file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710723570.7A CN107707450A (en) 2017-08-22 2017-08-22 A kind of method, apparatus and computer-readable recording medium for transmitting file

Publications (1)

Publication Number Publication Date
CN107707450A true CN107707450A (en) 2018-02-16

Family

ID=61170967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710723570.7A Withdrawn CN107707450A (en) 2017-08-22 2017-08-22 A kind of method, apparatus and computer-readable recording medium for transmitting file

Country Status (1)

Country Link
CN (1) CN107707450A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388659A (en) * 2018-03-07 2018-08-10 京东方科技集团股份有限公司 A kind of file browsing method and device
CN110083321A (en) * 2019-04-17 2019-08-02 北京海益同展信息科技有限公司 Content displaying method and device, intelligence throw screen terminal and readable storage medium storing program for executing
CN111327764A (en) * 2020-01-20 2020-06-23 深圳传音控股股份有限公司 Information sharing method, terminal and readable storage medium
CN111327517A (en) * 2020-01-20 2020-06-23 深圳传音控股股份有限公司 Information sharing method, terminal and readable storage medium
CN111327516A (en) * 2020-01-20 2020-06-23 深圳传音控股股份有限公司 Information processing method, terminal and readable storage medium
CN111327766A (en) * 2020-01-20 2020-06-23 深圳传音控股股份有限公司 Information sharing method, terminal and readable storage medium
WO2021147430A1 (en) * 2020-01-20 2021-07-29 深圳传音控股股份有限公司 Information processing method and device, and storage medium
CN113364852A (en) * 2021-06-02 2021-09-07 中国工商银行股份有限公司 File transmission method and device and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413075A (en) * 2011-12-18 2012-04-11 上海量明科技发展有限公司 Method and system for changing format during data transmission
CN102571726A (en) * 2010-12-23 2012-07-11 中国移动通信集团广东有限公司 Multimedia data sharing method, system and state judgment server
CN103177043A (en) * 2011-12-26 2013-06-26 联想(北京)有限公司 Method and electronic system used for transferring file across system platform
CN104125478A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Cross-platform video playing method, device and system
WO2015027430A1 (en) * 2013-08-29 2015-03-05 宇龙计算机通信科技(深圳)有限公司 Server and file sharing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571726A (en) * 2010-12-23 2012-07-11 中国移动通信集团广东有限公司 Multimedia data sharing method, system and state judgment server
CN102413075A (en) * 2011-12-18 2012-04-11 上海量明科技发展有限公司 Method and system for changing format during data transmission
CN103177043A (en) * 2011-12-26 2013-06-26 联想(北京)有限公司 Method and electronic system used for transferring file across system platform
CN104125478A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Cross-platform video playing method, device and system
WO2015027430A1 (en) * 2013-08-29 2015-03-05 宇龙计算机通信科技(深圳)有限公司 Server and file sharing method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388659A (en) * 2018-03-07 2018-08-10 京东方科技集团股份有限公司 A kind of file browsing method and device
CN110083321A (en) * 2019-04-17 2019-08-02 北京海益同展信息科技有限公司 Content displaying method and device, intelligence throw screen terminal and readable storage medium storing program for executing
CN110083321B (en) * 2019-04-17 2021-05-04 北京海益同展信息科技有限公司 Content display method and device, intelligent screen projection terminal and readable storage medium
CN111327764A (en) * 2020-01-20 2020-06-23 深圳传音控股股份有限公司 Information sharing method, terminal and readable storage medium
CN111327517A (en) * 2020-01-20 2020-06-23 深圳传音控股股份有限公司 Information sharing method, terminal and readable storage medium
CN111327516A (en) * 2020-01-20 2020-06-23 深圳传音控股股份有限公司 Information processing method, terminal and readable storage medium
CN111327766A (en) * 2020-01-20 2020-06-23 深圳传音控股股份有限公司 Information sharing method, terminal and readable storage medium
WO2021147430A1 (en) * 2020-01-20 2021-07-29 深圳传音控股股份有限公司 Information processing method and device, and storage medium
CN111327766B (en) * 2020-01-20 2021-10-19 深圳传音控股股份有限公司 Information sharing method, terminal and readable storage medium
US11477146B2 (en) 2020-01-20 2022-10-18 Shenzhen Transsion Holdings Co., Ltd. Information sharing method, device and non-transitory computer readable storage medium thereof
CN113364852A (en) * 2021-06-02 2021-09-07 中国工商银行股份有限公司 File transmission method and device and server

Similar Documents

Publication Publication Date Title
CN107707450A (en) A kind of method, apparatus and computer-readable recording medium for transmitting file
CN107562336A (en) A kind of method, equipment and computer-readable recording medium for controlling suspension ball
CN107027114A (en) A kind of SIM card switching method, equipment and computer-readable recording medium
CN106961706A (en) Method, mobile terminal and the computer-readable recording medium of communication pattern switching
CN107343083A (en) One kind lifting game experiencing method, apparatus and computer-readable recording medium
CN107770369A (en) Control method, device and the computer-readable recording medium of mobile terminal
CN107145385A (en) A kind of multitask interface display methods, mobile terminal and computer-readable storage medium
CN107329682A (en) Edge exchange method and mobile terminal
CN107181700A (en) Control method, mobile terminal and the storage medium of application program for mobile terminal
CN107729103A (en) A kind of method for switching theme, mobile terminal and computer-readable storage medium
CN107592415A (en) Voice transmitting method, terminal and computer-readable recording medium
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN107621915A (en) A kind of message prompt method, equipment and computer-readable storage medium
CN107678625A (en) Information Sharing menu display method, mobile terminal and computer-readable recording medium
CN107172605A (en) A kind of Emmergency call method, mobile terminal and computer-readable recording medium
CN107423065A (en) Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else
CN107105058A (en) Folder transmission method and mobile terminal
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN108966162A (en) Data communications method, communication processing equipment, terminal and readable storage medium storing program for executing
CN107465829A (en) A kind of document sending method, mobile terminal and computer-readable recording medium
CN107809527A (en) A kind of method and apparatus that prompt operation is presented
CN107391593A (en) A kind of document handling method, mobile terminal and computer-readable recording medium
CN107608629A (en) A kind of data migration method, terminal and computer-readable recording medium
CN107241394A (en) A kind of log transmission method, device and computer-readable recording medium
CN107466081A (en) A kind of wireless switching method and terminal

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20180216

WW01 Invention patent application withdrawn after publication