Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1235

November 16th, 2011 05:00

How to download files using DownloadHelper

Hi,

Can anyone help me by showing an example of how to download files using  download helper in dot.net.  I am not able to assign values to variable type Identifier. Please show me how to download particular file from Atmos using a particular object id retrieved from a database or even hardcoded object id for that matter.

Any help appreciated.

Thanks in advance,

Ratish.

281 Posts

November 16th, 2011 07:00

Hi Ratish,

It would look something like this:

ObjectId id = new ObjectId("4d773b6ca10574f404d773bd3bedfc04d776693243b8");

DownloadHelper dh = new DownloadHelper(api, null);

dh.ReadObject(id, "C:\\temp\\foo.txt");

Identifier is the base class of both ObjectId and ObjectPath so where you see Identifier in the APIs you can use either type.

16 Posts

November 17th, 2011 01:00

Hi Jason,

Thanks a ton for your help.

Ratish

No Events found!

Top