I want to paste a rather huge amount of text into an email (approximately 100,000,000 characters). I have the text document containing said characters on hand and may copy it with ease using “select all.” However, due to the size, attempting to paste this text into the email body crashes the webpage of any browser, and caused the Mac email client to freeze when I tried that instead.
Is it possible to accomplish this goal, or is it simply beyond the scope of technology?
Just to clarify, I am aware of superior means to transport or share this text as a .zip file or using Google Drive etc., my goal is not to share this text in a tangible way, I simply want to paste it into an email.
Best Answer
The following is an untested proposed workflow to transfer the contents of a textfile to a
textarea
-field such as used by Gmail Compose. It may or may not work where a simple copy-paste fails. If you really want to try to enter 100MB of text into a webform, you could try it, but please consider the comments and other answers suggesting you approach the underlying problem differently.In Firefox, use the It's All Text! addon. With this addon, you will be able to use your favourite text editor to write in any
textarea
field, including the one used for Gmail Compose.Then the question changes to: how do I paste a large amount of text into [insert text editor]? The following assumes the original is in a file that is plain text.
Personally, I use
vim
and I do!cat /path/to/file.txt
.An approach that should work with any text editor:
/tmp/itsalltext.txt
.cat /path/to/file.txt >> /tmp/itasalltext.txt
.Now, the contents of
/path/to/file.txt
will be in the textarea.Two problems remain: