Hi
I have a little trouble passing an image from powerapps to a custom api
the trouble is that i cannot pass the image (System.Drawing.Image) or a bitmap (System.Drawing.Bitmap) or a stream from a powerapp.
the field is always null
anyone can help me?
I have a Post action in my Custom webapi like this
[ActionName("Post")]
// POST: api/TestBC
public void Post([FromBody]CustomModel value)
{
......
}
//Melius est abundare quam deficere
public class CustomModel
{
public Stream ImgStream { get; set; }
public System.Drawing.Image Image { get; set; }
public System.Drawing.Bitmap Bitmap { get; set; }
public string ImageString { get; set; }
}in my powerapps i have a myCamera Control and a buttonthe action in myBytton is
UpdateContext
(
{
bc:
{
Image : MyCamera.Photo //(Or ImgStream or Bitmap)
}
}
);;[MyConnectionstringName].BusinessCardPost( bc)

Report
All responses (
Answers (