Using MemorySteam from DB and not use a FileStream

PDF-XChange Editor SDK for Developers

Moderators: Tracker Support, TrackerSupp-Daniel, Paul - Tracker Supp, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan, Ivan - Tracker Software

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
coblejesse
User
Posts: 30
Joined: Thu May 16, 2019 7:44 pm

Using MemorySteam from DB and not use a FileStream

Post by coblejesse » Thu May 16, 2019 8:25 pm

Hi,

Is there anyway to load a PDF straight from a DB and not have to first create a file? I have it working loading a FileStream using your IStreamWrapper, but cannot get it to work using a MemoryStream straight from the Db using a byte array. Is this possible?

Thanks,
Jesse

User avatar
Sasha - Tracker Dev Team
User
Posts: 4075
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Using MemorySteam from DB and not use a FileStream

Post by Sasha - Tracker Dev Team » Fri May 17, 2019 6:33 am

Hello Jesse,

If you want to implement the wrapper, the memory that you are using must be available for entire time while the file is open and the .Net manager is using the memory. Also, if you are using x86/Win32 build then you can run out of memory unexpectedly as you are using the .Net memory manager so try x64 just in case.
Also, we can't advice you anything more, until we see your code.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply