PowerApp to CustomVision connector : Error Message CustomVision.ClassifylmageV2 failed: {"code": "BadRequestImageStream", "message": "Bad Request Image Stream (stream is empty), Uri: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}

LiangAN 0 Reputation points
2023-10-15T03:52:37.5433333+00:00

Hi I have a PowerAPP that passes an image from camera to Custom Vision connector:

CustomVision.ClassifylmageV2 failed: {"code": "BadRequestImageStream", "message": "Bad Request Image Stream (stream is empty), Uri: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}

User's image

My Custom Project parameter & type classification is here

User's image

Azure AI Custom Vision
Azure AI Custom Vision
An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.
233 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,583 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 43,656 Reputation points Microsoft Employee
    2023-10-16T05:59:32.9133333+00:00

    @LiangAN The error message indicates that the connector you are using did not send the content of the image to the custom vision API. Do you think the powerapps project is configured correctly to send the binary stream to the API? Try using a URL connector instead if you think the app is not setup correctly.

    I have also found this project with detailed settings for sending images through a powerapp. Could you check if you have captured the image correctly before passing it to the custom vision API?

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments