plaidshirt
plaidshirt

Reputation: 5671

Base64 encode text files effectively and copy it

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.

Upvotes: 0

Views: 1587

Answers (1)

Dmitri T
Dmitri T

Reputation: 168042

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

Upvotes: 2

Related Questions