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

TFS Java SDK writting an embedded image #258

Open
GBTaylor opened this issue Mar 14, 2018 · 0 comments
Open

TFS Java SDK writting an embedded image #258

GBTaylor opened this issue Mar 14, 2018 · 0 comments

Comments

@GBTaylor
Copy link

GBTaylor commented Mar 14, 2018

I'm aware that to write an embedded image you must add the image as an attachment and then use the URL for that attachment in the html. Reading existing embedded images shows that the URLs have a FileNameGuid value that can appear as the value following the "attachments" or as FileNameGuid parameter.

<img src="https://gregoryta.visualstudio.com/DefaultCollection/d07bb45a-a8e8-4a72-b437-792051363421/_apis/wit/attachments/89b4055c-4825-4a28-a830-c6141a44ebe?fileName=smalls.png>

However, if I create an attachment using the Java SDK, when I call attachment.getURL I don't get at URL containing FileNameGuid, but instead I get back at URL that has FileID:

https://gregoryta.visualstudio.com/DefaultCollection/WorkItemTracking/v1.0/AttachFileHandler.ashx?FileID=1665619&FileName=c2d1c1d9286104d04cbef2edd10a55fd.png

Without the FileNameGuid I am unable to retrieve the attachment.

Thanks for your help.

Greg Taylor

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