0
Follow
1
View

There is a very long String type base64 encoding, it needs to be divided into several parts uploaded to the server, the server side then spliced, how should I divide it into several parts?

cyflove23 注册会员
2023-02-28 18:16

1.String.substring() method, according to the specified length, split a string into multiple strings, and then upload them to the server;
2. Use the regular expression to match the string, divide the string into multiple strings based on the matching result, and upload them to the server.
3. The Base64 encoding algorithm is used to cut the original string according to the specified length, and then upload the cut string to the server.
4. Fragment the original string according to the specified length using the fragment algorithm, and upload the fragmented string to the server.

dacong0417 注册会员
2023-02-28 18:16
< div class = "md_content_show e397 data - v - 3967" = "" >

hope to adopt

About the Author

Question Info

Publish Time
2023-02-28 18:16
Update Time
2023-02-28 18:16