Forum Discussion

kaplev12's avatar
kaplev12
New Contributor
8 years ago

Adding a wave file to JSON POST request

I searched the forum but didn't find a clear answer. 

I am trying to attach a .wav file converted to base 64 text to my JSON request. I added the following line to my JSON:

 

"sound_content":cid:8bitwave

 

and then added the file as an attachment. The file was added and cached with empty part field and type UNKNOWN. When I try to select a value for part, I just get an up and down arrows, but can't select any value (I am using Mac).

 

The same works for xml and the part value can be selected, but not for JSON. 

 

Thanks a lot for your help.

 

4 Replies

    • kaplev12's avatar
      kaplev12
      New Contributor

      Hi Tanya,

       

      Thank you for your reply and the link. I saw that article and I saw that it works if I use xml for my request. My question was if I could use Json for the request, because when I tried Json I couldn't select a value for the PART field, the popup was empty.

       

      Thanks,

      Alex

      • nmrao's avatar
        nmrao
        Champion Level 3
        Are you using that in a test case?