jmckay123 Absent Member.
Absent Member.
291 views

Maximum data retrieved by getAttachmentRequest

I've noticed getting a response from getAttachmentRequest that says "too much data requested". I presume I can get around this by downloading in chunks, using offset and length. Can you save me some experimentation time and tell me what the cutoff is before I have to do that? Or is it configurable somewhere?
Labels (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Maximum data retrieved by getAttachmentRequest

I'm away from the office and I am having troubles looking at the code.
I believe the limit is 1 MB.
It is hard coded.
You should use HTTP GET to get attachment data.
I did a test a long time ago.
It took 30 minutes to download a 40 MB attachment using
getAttachmentRequest.
Using HTTP GET, it to 8 seconds.

It is also resource intensive to use getAttachmentRequest.

(I don't remember the actual size, but the times are correct.)

Preston



>>>


> I've noticed getting a response from getAttachmentRequest that says "too
> much data requested". I presume I can get around this by downloading in
> chunks, using offset and length. Can you save me some experimentation
> time and tell me what the cutoff is before I have to do that? Or is it
> configurable somewhere?


0 Likes
jmckay123 Absent Member.
Absent Member.

Re: Maximum data retrieved by getAttachmentRequest

What URL would I use for the GET? I've got a big long attachment id that I got from the
message XML, does that translate somehow into a URL I can use to download the attachment?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Maximum data retrieved by getAttachmentRequest

Let's try this first.
Download the documentation.
https://filr.microfocus.com/ssf/s/readFile/share/155744/-2238616661585662026
/publicLink/gwsdk_gwwebservices.pdf

Read section 1.15 Streaming Attachments.
If you still have questions, please ask.

Preston


>>>


> What URL would I use for the GET? I've got a big long attachment id
> that I got from the
> message XML, does that translate somehow into a URL I can use to
> download the attachment?


0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.