Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading Image to an Api #21

Open
abdul-sh opened this issue Feb 2, 2022 · 0 comments
Open

Uploading Image to an Api #21

abdul-sh opened this issue Feb 2, 2022 · 0 comments

Comments

@abdul-sh
Copy link

abdul-sh commented Feb 2, 2022

Hello there,
I wanna thank u for the hard work u have invested to build this Flutter package so many people can get benefit from it. I was trying to upload an image to the api but I did not know how to make this work. Can u please give me an example for that. Thank u in advance.
This is what I have done:

NTLMClient client = NTLMClient(
domain: "",
workstation: "LAPTOP",
username: "username",
password: "password",
);
await client
.post(
Uri.parse(
'https://someWebsite/'),
body: File('imagePath').toString(),
)
.then((res) {
print(res.body);
});

But it did not seem to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant