Helpful Tip: Uploading user pictures requires multipart request

I’m “oh-so-close” with getting things working in a Visual Studio C# solution…I’ve combed through the responses above (thanks everyone!), but I must be missing that proverbial comma somewhere…

I’m getting a 400 error with a response of {“code”:120,“message”:“Only jpg/jpeg, gif or png image file can be uploaded.”}

I can take the same jpg file and the same parameters, run it through PostMan with a form-data body that just uploads the file and it changes my profile picture in Zoom just fine (so the Zoom URL, token, permissions and auth are all good)

I can grab the Base64 encoded string and it decodes back to my favorite cartoon character

Below is what’s getting captured by Fiddler as it’s on the way out from Visual Studio…

Content-Type: multipart/form-data; boundary=8cf33af937264db9229432

--8cf33af937264db9229432
Content-Type: image/jpeg; charset=utf-8
Content-Disposition: form-data; name=pic_file; filename=woodstock.jpg; filename*=utf-8''woodstock.jpg

/9j/4AAQSkZJRgABAQEAAAAAAAD/2wBDAAkGBxIHEhUQEhIVFhUWGR0XGRYYGBggHxcXFhsYIB4fGhcYHSggGB8lHRsZITEiKCkrLi4wGR8zODMvNygtLiv/2wBDAQoKCg4NDhoQEBotJR8lNS4tLS0rLy0tLS0tLS0tLS0tLS0tLS0tNS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS3/wAARCAD6AMkDAREAAhEBAxEB/8QAHAABAAMBAQEBAQAAAAAAAAAAAAUGBwQDAgEI/8QATxAAAQMCBAMFBAYDCgwHAAAAAQACAwQRBQYSIQcxQRMiUWGBMkJxkRRSYoKhsRUjcggWJENTk6KywdEXMzVjc4OSo8PS0/AlNERVdLPh/8QAGwEBAAIDAQEAAAAAAAAAAAAAAAQFAgMGAQf/xAA6EQACAQMBBAcHAwMDBQAAAAAAAQIDBBEhBRIxUUFhcZGhsdEGEyKBweHwFCMyM0JTFXKSFiQ0Q1L/2gAMAwEAAhEDEQA/ANxQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEBm+eOLVNl95pqdn0mpB0lrT3GPvbS5wuXOvtpaD1BIK8fNgp0lJmHOveqaj6HA7fs23YbW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XE8PE0WGUrqmF0lw58byGEC19TS1rXOboJBPujZdxebLo3m7KrlNLGn3T4alfCrKGcFwoOHmKZwnjmxh4jgYbiBrm3I22DY+6wHkXFxdtb4SbWyo2sWqUcZ4vi38zGc5TeWzbmjTspRgfqAIAgCAIAgCAIAgCAIAgCAIAgCAqOP8NcMx9xklpmtkNyXxksJJ5khps4+ZBQFUn4C4e72Kiqb8XRn/hhAcj+AFN0rZh8WMP8AaEB5s4Gywf4vF5GjoBC4fiJgtbpwfFLuPcs+jwexAcsal+Uv/VWDt6XTBdyGXzB4M1k4tJjMpHhokd+cwWSoUlwiu5DL5nbhfAehpyHT1E8xG5A0sa742Bd8nBbDw0zCMKhwWJsFPG2ONvJrR+J6knqTuV6DtQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAEAQBAf//Z
--8cf33af937264db9229432--

Does the filename have to be defined a certain way? Quotes around certain areas? I can post the VS code if it would be helpful.

Hope something stands out that I’m just overlooking… Thanks! :slight_smile: Derry

Hi @lyons,

Thanks for reaching out!

Can you let me know if this template gives you better luck?

var client = new RestClient("https://api.zoom.us/v2/users/{userId}/picture");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "multipart/form-data");
request.AddHeader("Authorization", "Bearer {token}");
request.AddFile("pic_file", "/Users/someone/Downloads/file.jpg");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Thanks!
Will

Yep - that did the trick! Points me to something in the way I’m building the REST call in our custom library. I’ll keep poking on that, but this helps get me back in the game. THANKS! :slight_smile:

Awesome, glad to hear it :slight_smile:

So… looking back through the comments, a couple of questions:

  1. Can a Zoom engineer verify that the API will accept a base64 encoded string? The above examples all seem to ultimately end in the file upload (application/octet-stream)

  2. Attached are the top parts of the content body of the two requests – the first one returns 400, the second one works just fine.
    image

  3. Is there any detailed logging inside of Zoom with more specifics on what’s throwing the 400 error?

Thanks all! :slight_smile:

Hi @lyons,

I believe the issue here is with how you’re sending the file in the first request. I don’t believe this endpoint accepts the base64 encoded file.

Let me know if this helps to clarify,
Will