![]() This way, you'll only hold a fraction of the file at each time: using (System.IO.StreamWriter writer = new System.IO. You will get the converted code within no time. Click on the Convert to Hex button for conversion. To avoid holding all in memory, you should stream the data, converting and writing each chunk. To avoid holding all in memory, you should stream the data, converting and writing each chunk. Good Submit Reviews HOW TO CONVERT TEXT TO HEX You can convert text to hex online by following these simple steps: Paste your text in the given box or upload a file containing text. 2 Answers Sorted by: 9 Your problem is that you load the whole file into memory, convert each byte to three characters (that's the file size times 6), going through Replace and ToCharArray. ![]() Your problem is that you load the whole file into memory, convert each byte to three characters (that's the file size times 6), going through Replace and ToCharArray. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |