Image upload in environment


#1

Is there any way, i can place an image in environment???


#2

@kamalviji16,
Not sure about your use case but you can store a base64 encoded string of the image but please note that base64 strings of large images can be really long and might cause an overhead in request execution.

Another option is to store the URL of the image.


#3

Thanks for your reply Bhargav…

My scenario is, I have an User API where he can upload images to his profile. To achieve this, i set Body as file and choose the image file.

When it comes in picture to run in Runner/Newman, where can I have the image. So that the collection can pick it and run the tests.