![]() ![]() This would for sure be a discussion I'll have with the networking expert when I get to that stage but just thought I'd ask for the information here since its a related thing. Jun 15, 2011, 4:12:18 PM to Google Documents List API Hi, I would to know if there is a size limit on the images which I can send in a doc by using base64 encoding. I would think to simply send the buffer file directly but not sure. Base64 is an encoding algorithm that converts any characters, binary data, and even images or sound files into a readable string, which can be saved or. If you want to further reduce file size, use canvas.toDataURL(image/. For the first case with the GZIPInputStream the size is bigger, and in the second case with the Deflater class the size is almost the same. It does make the file size smaller because a smaller dimensioned image means less pixels. ![]() My problem is that after compression the size is not less from both cases. I'll give this a go tonight!įollowup, if I wanted to send replay data over the internet to a friend for my game, would encode64 also not be a good method of doing it to make the file size smaller? (if of course the original buffer file isn't too big like in my OP). Im trying to compress a Base64 String using the and Deflater clases. Thanks for the code snippet, I did stumble upon your extension during my research and fell short of understanding exactly what to do. Once again, I recognize your expertise that this is not the proper way to do this, just wanted to mention it though. Another reason that Base64 encoding may not be the best option is that there are better compression methods for storing data as text files on storage devices. And actually, doing this actually does work with the api and I was able to get the file attached to a card. I actually did find a thread on the forums addressing this and a poster mentioned that the encode64 method could be a solution. Click to expand.Yeah its probably not the correct way from a security standpoint, and I actually did do some research with the api and didn't understand the multipart/form-data part. Base64 encoding schemes are commonly used when there is a need to encode binary data, especially when that data needs to be stored and transferred over media that are designed to deal with text. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |