0

I am trying to get an attachemnt using GET https://dev.azure.com/org/_apis/wit/attachments/9532fc2b?api-version=5.1 using c# using http client. I am getting the response something like this "PK\u0003\u...".

After getting this response i want to upload it back to another organisation in ADO. I don't want to download it.Using the GET and POST I need to do this. When I am doing POST using httpclient, it says successfull and created. But if click on the url a file with avague name is downloaded and I am not able to open it.

1 Answer 1

1

To upload attachment, we need to upload attachment to attachment store first and then attach the attachment to specific work item. (I think you may lack the first step)

And the file to be uploaded should be binary file, see similar ticket here.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.