Hi @Singh, Shruti,
Glad to know that your issue has been resolved. And thanks for sharing the solution, which might be beneficial to other community members reading this thread. Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.
Question: why am i getting this error?
Answer: I found the solution on Microsoft page itself. I replaced the parameter image_url
with image data. where image_data
is:
with open(file_path, "rb") as f:
image_data = f.read()
Thank you.
Please do click Accept Answer
and Yes
for was this answer helpful.