Hi,
I got this message when i link image with blob value. "the property expects image values, but this rule produces incompatible Blob Values". How do i convert blob to image compatible value at PowerApps?
Regards,
Yukon
Hello,
Kind of the same issue here. Could someone help, please?
Thank you
Also having this issue.. has anyone found a solution?
Hi,
Can you please provide an example of what you are trying to do?
Thanks!
Cherie
I have the same issue. In my case, I built a custom connector to Microsoft Graph API. One of the path calls /photo/$value - which returns a binary value. (I'm aware of the existing Office 365 connector, but that connector GetPhoto() function doesn't work in my configuration.)
If you are using a custom API/connector, you've provided a Swagger/OpenAPI file.
When you specify the response for an operation to be binary, you specify like this:
The default for the x-ms-media-kind is "blob". But it can also be set to "image" or "media". This is the same extension that is supported when specifying a file upload that should be an "image" vs any sort of file.
Hi,
thanks for your help on this.
First, let me comment that in my world of PowerApps I can only use Swagger 2.0 syntax as in
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "string",
"format": "file",
"x-ms-media-kind": "image"
}
}
But, this does not work. the returned content type is not a file. It is text/plain, but really it is binary data. With a different format, such as the "file" or "image" the Power App replies with an error message: "The Response Type returned is invalid. Expected JSON," which probably indicates an attempt by the system to read binary data into a string.
}
Have you tried using the response schema I gave? It is valid Swagger for describing when a response body should be treated as a file, not as json data.
With the schema: { type: "string" ... }, this means the body is expected to be a json string. But your body is actually some arbitrary file.
Hrm, so I created a mock Swagger file that will download files of different media-kind's. The Swagger has three operations:
When I try to bind the output of these operations to an Image control's 'Image' property I get the same error "The property expects Image values, but this rule produces incompatible Blob values." (or "...Media values." for the downloadAudio operation).
When I use downloadImage() function I do not get the error.
Here's the swagger I used:
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
271 | |
255 | |
87 | |
39 | |
34 |
User | Count |
---|---|
348 | |
262 | |
130 | |
68 | |
48 |