cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Image over custom api

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 Smiley Sad

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)

 

1 REPLY 1
Microsoft
Microsoft

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (27,683)