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)
Try this tutorial to see if it helps:
https://powerapps.microsoft.com/en-us/blog/custom-api-for-image-upload/
User | Count |
---|---|
228 | |
103 | |
98 | |
57 | |
31 |
User | Count |
---|---|
283 | |
113 | |
107 | |
63 | |
63 |