CodePudding user response:
Then you can define your own transport protocol, front the shard transmission according to the agreement, the back-end piece back according to the agreement (as zip compression) segmentationCodePudding user response:
Front has shard, then spread to Linux servers, as is all uploaded shard, tell the Linux server consolidation shard.CodePudding user response:
Now all kinds of cloud (cloud, ali cloud, huawei,) support file upload, also can consider to the front the file upload directly to the public cloud,CodePudding user response:
One simple definition:1 the client - server ", submitted to the original file name, length, file creation time, file modification time, back to the server file id, fragmentation length
2 queries, submission file name or id, to return to the file server id, receiving state, fragmentation length, have accepted the shard of
3 upload shard, server file id, fragmented data
CodePudding user response:
Submit documents information, basic information and blockingBlock transmission,
End of merger save,
Check the integrity
Complete with points
CodePudding user response:
The HTTP protocol itself to support this function, you said just, the existing framework, mostly supported by small file upload,You go to online check Java breakpoint continuingly functions, should be able to help you,
Fragmentation of a large file transfer, the estimate is breakpoint continuingly functions associated with it,
Is in no, her to write a receiving file upload code is not finished,
The servlet, spring MVC, and so on, should do not have what problem,
The key point is, if a large file you shard to upload, then, after a file transfer, such as real and effective, to ensure that the upload data to the file MD5 check code also, try to make sure of sending and receiving data is consistent,
CodePudding user response:
Don't know what is your specific requirements, also don't know what is your large files, SMB is the requirement of local area network (LAN), public assumption is not appropriate,Listen to your story, probably understood as the server service side, I assume that both ends are Java server, you can use the socket, bit by bit the can, shake hands for the first time transfer files and the total length of hash check code, then spread a little save a transfer state to prevent the network is not stable,
In fact to write their own also is not very troublesome,