© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
Scarlet

❔ How to upload a MemoryStream as form file in a web request?

I'm trying out how to use HttpClient.PostAsync to send a Form with a file. But I want this file to be a MemoryStream and not an actual file from my files. How do I do this?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

how to upload a file in .net project
C#CC# / help
3y ago
Multipart form upload prepends the file
C#CC# / help
2y ago
✅ MemoryStream question
C#CC# / help
15mo ago