web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Image over custom api
Power Apps
Unanswered

Image over custom api

(1) ShareShare
ReportReport
Posted on by 2

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)

 

Categories:
  • michowl Profile Picture
    Microsoft Employee on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard