05-31-2012 08:39 AM
I'm trying to store a new document into the OnBase system through the Unity API. I'm using a memory stream to write the file to and passing that to the CreatePageData method along with an extension, however, once i call the StoreNewDocument method and using PageData and Document Property objects, i get an exception thrown from the Unity API that the Stream is empty...
Anybody else experience this issue?
AJ
05-31-2012 09:47 AM
After writing to the MemoryStream did you reset the Position to 0? If not, that is the issue.
05-31-2012 09:59 AM
Yes, that fixed it. Thank you very much... Easiest thing in the world to forget...
AJ
03-25-2020 04:49 PM
That worked for me too. In my case I was getting the next error: Error code: (-7). Image was not recognized as a format the library can decompress.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.