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

Question

Question

LFSO Uploaded Files Black

asked on April 10, 2014

So I have a developer who is using the LFSO Application to upload TIFF files into the repository with a script, and when the files are uploaded, they are black.

 

Any ideas ?

 

 

 

0 0

Replies

replied on April 10, 2014

Please confirm if the same issue occurs when importing the same TIFF file through the desktop Laserfiche Client. If so, can you contact your Laserfiche reseller and open a support case? Please provide the exact version of Laserfiche being used as well as a copy of the TIFF file.

0 0
replied on April 10, 2014

The files are fine and look good as TIFF files when viewed before upload.  But after upload, they are black.

 

It does not occur in Client.

 

LF 8.3.1.625

0 0
replied on April 10, 2014

Is your SDK application using the 8.3 libraries as well or is it using an older version?

0 0
replied on April 10, 2014

I'm fairly certain it is the 8,3 libraries.  He has a support account.  I'm going to have him log in and comment on this thread to confirm details of the upload parameters etc.

0 0
replied on April 10, 2014 Show version history

Hello Trevor, 

Please try the follow steps.

 

  • Navigate to the document (the one that looks blank) in Laserfiche Client folder browser,
  • Right click on that document,
  • Select Properties, and then
  • Go to the Page Info tab, and finally
  • Note the file size of that image after the uploaded image has resided in the repository. (This file size refers to the compressed file size of the page image in bytes.)

 

In either case, please contact your reseller or Support for assistance.

 

---- ---- ---- ---- ----

 

Speaking to the VAR and Support.

 

In addition to testing it with the Client version that Trevor is using, please also perform an additional test with the same image with Laserfiche Client 8.3.2.

 

Here are the support information for Client 8.3.2, which is a maintenance release for Laserfiche 8.3 and contains a number of bug fixes.

 

https://support.laserfiche.com/KB/1013101

https://support.laserfiche.com/KB/1013088

 

The issue may be dependent on system files that are installed on individual client machines. So, performing this test on different machines (with different client versions up to maintenance release or hotfix) may see different results.

0 0
replied on April 10, 2014

I've updated the server to 8.3.2.755 and added the hotfix for server.

 

 

0 0
replied on April 10, 2014

Hello Trevor, glad to hear that. Did you update the Laserfiche Client on at least one test machine and test from that? Thanks.

0 0
replied on April 11, 2014

Hello, I'm the developer on this project that Trevor was talking about. I believe the SDK version I am using is 9.0

0 0
replied on April 11, 2014

SDK 9.0 ships with libraries from previous versions. Can you confirm the version of the libraries that you are referencing in your application? Can you also provide a copy of the TIFF file that you're testing with?

0 0
replied on April 11, 2014 Show version history

Your SDK may be v9.0, but to use LFSO, the DLL you are referencing should be the COM 8.3 versions as shown here:

 

Here is the basic COM import code:

' LFDB is LFDatabase with valid connection to the repository
' DocID is integer that contains the LF entry ID of the document.
' source is String that contains full path to the tiff file for import

' Get Document to import into
Dim doc As LFDocument = LFDB.GetEntryByID(DocID)
' Instantiates a new document importer.
Dim DocImporter As New DocumentImporter
' Assigns the document to the document importer object.
DocImporter.Document = doc
' Sets document importer to insert pages before page 1.
DocImporter.PageAction = Import_Page_Action.IMPORT_PAGE_ACTION_INSERT
DocImporter.PageIndex = 1
' Imports an image file.
DocImporter.ImportImagesFromFile(source)
' Cleans up object handles.
doc.Dispose()

 

0 0
replied on April 11, 2014 Show version history

Ah, yes then I am using 8.3 I believe. These are the calls I'm using.

Set LFApp = CreateObject("LFSO83.Application")

Set LFConn = CreateObject("LFSO83.Connection")

Set NewDoc = CreateObject("LFSO83.Document")

Set DocImporter = CreateObject("DocumentProcessor83.DocumentImporter")

 

0 0
replied on April 11, 2014

Can the TIFF file you are trying to import be provided? Also, have you contacted your reseller about opening support case?

1 0
replied on April 11, 2014

I feel like using the 8.3 library and 8.3 client on your machine would be a good test.  Then upload file and specify size as he requested...

0 0
replied on April 14, 2014

From your code snippet, it looks like you are using VBS, VBA, or VB6 or earlier.  I would highly encourage you to move to VB2010 or newer.  You can create a console app and pass in command line arguments (such as LF path or TIFF path) if that is needed.

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

Sign in to reply to this post.