Getting Attachment Data with Java

Former SVN Browser
Posts: 1
Joined: Mon Aug 17, 2015 11:14 am

Getting Attachment Data with Java

Postby prosk » Mon Aug 17, 2015 11:49 am

Hello community,

I am not sure if this is the right place for this topic, please don't offend me, because this is my first post.

I have a question concerning the Polarion web service. I’m trying to save attachments from specific Work Item types on a different server. Getting information about attachments like filename, uri, e. g. works like a charm with the TrackerService, however, I haven’t been able to receive the data. I have also tried to receive the data via a url-request (http://.../5-Anhang.txt?revision=1260), sadly I wasn’t able to succeed.


Posts: 1
Joined: Tue Apr 16, 2019 3:21 am

Re: Getting Attachment Data with Java

Postby mario_lolo » Tue Apr 16, 2019 3:25 am

Hi, I have done it this way (C# code but it might give you a direction)

string path = Path.Combine(@"C:\temp", att.fileName);
WebClient web = new WebClient();
web.Credentials = new NetworkCredential("user", "password");
web.DownloadFile(att.url, path);

Posts: 1
Joined: Fri Jun 21, 2019 9:44 am

Re: Getting Attachment Data with Java

Postby niveditamore » Fri Jun 21, 2019 9:56 am

Excellent post! I got valuable information here. Thank you!

Return to “Polarion SVN Web Client”

Who is online

Users browsing this forum: No registered users and 5 guests