简体   繁体   English

Base64图片过大

[英]Base64 image post to large

I use https://foliotek.github.io/Croppie/ and when i cropped an image the form posts the base64 data. 我使用https://foliotek.github.io/Croppie/ ,当我裁剪图像时,表单会发布base64数据。 But for an iphone its to heavy, crashed. 但是对于一部iphone来说,它就很沉重,崩溃了。 On desktop and android it works. 在台式机和Android上均可正常运行。 So is it possible to encode base64 to a smaller post? 那么可以将base64编码为较小的帖子吗?

How can i achieve that? 我该如何实现?

在此处输入图片说明

Based off of what you're telling me, it sounds like it's too much for the mobile browser to handle all at once. 根据您告诉我的内容,对于移动浏览器来说,一次处理所有操作似乎太麻烦了。 Does the browser crash on upload or during the process of storing the base64 data in preparation to post. 浏览器在上传时或在准备发布的base64数据存储过程中是否崩溃? I'm trying to understand where the crash occurs. 我试图了解崩溃发生的位置。 If you know that the transmission of this amount of data is too much, I recommend finding the limitation. 如果您知道此数据量的传输过多,建议您查找限制。 How many characters in this string is it willing to accept without crashing. 它愿意接受此字符串中的几个字符而不会崩溃。 When you discover this limit, chunk the data and send separate posts one after another. 当您发现此限制时,请对数据进行分块并逐个发送单独的帖子。 I may be wrong but it's worth looking into. 我可能是错的,但值得研究。 (Chunk Loading) (大块加载)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM