0

I have large text files, which should be Base64 encoded. I tried to open it in Notepad++ and encode it with Base64 converter plugin. It was finished in ~10 minutes, but I cannot select output string to use it in JMeter. Files are to long to select it and copy to some converters.

plaidshirt
  • 4,415
  • 14
  • 72
  • 157

1 Answers1

2

You can use the following functions combination:

The syntax would be:

${__base64Encode(${__FileToString(/path/to/your/file,,)},)}

You can install __base64Encode() (and other) functions using JMeter Plugins Manager:

JMeter Plugins Custom Functions

Dmitri T
  • 140,090
  • 4
  • 71
  • 123
  • Request is executed, but I can't see details, because I get a white screen on response tab. I use these setting: `set HEAP=-Xms512m -Xmx5112m` , but I see error: java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid9972.hprof ... Heap dump file created [2861833605 bytes in 93.476 secs] Uncaught Exception java.lang.OutOfMemoryError: Java heap space. See log file for details. – plaidshirt Jan 29 '18 at 11:51