You are viewing limited content. For full access, please sign in.

Question

Question

Get File Stream based on Entry ID using SDK

asked on May 21, 2020

Dear,

Is there any function that allows me to get a file stream based on entry id ? Using SDK 

Thanks !

0 0

Answer

SELECTED ANSWER
replied on May 21, 2020 Show version history

Thank you so much.

I found this function that serves the purpose too :

 LaserficheReadStream file = Document.ReadEdoc(rInt, out contentType, Sess);
 byte[] result = new byte[file.Length];
 file.Read(result, 0, result.Length);
                                

0 0

Replies

replied on May 21, 2020

Ali,

The ReadPagePartByID method on the static Document class will return a stream.  From the SDK documentation;

public static LaserficheReadStream ReadPagePartById(
    int entryId,
    long pageId,
    PagePart pagePart,
    Session session
)

1 0
SELECTED ANSWER
replied on May 21, 2020 Show version history

Thank you so much.

I found this function that serves the purpose too :

 LaserficheReadStream file = Document.ReadEdoc(rInt, out contentType, Sess);
 byte[] result = new byte[file.Length];
 file.Read(result, 0, result.Length);
                                

0 0
replied on May 21, 2020

For clarity, these calls are not the same. One reads the image pages, the other reads the electronic document component.

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.