Problem uploading a big file

Use this Forum to post your “How to …” questions about your use of LongReach. This is not a technical support forum. Both the LongReach Support Team at LANSA and other LongReach customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.
Post Reply
lansahansen
Posts: 2
Joined: Fri Dec 30, 2011 9:28 pm

Problem uploading a big file

Post by lansahansen » Fri Dec 30, 2011 9:31 pm

I have this evening tried to install LongReach on our Iseries and my iPad.
I have now tried to recive, change and upload files.
I seems to work with "small" files.

I tried to upload an image but after 5 sec. I get this Error:

File Manager
Connection Error:
NSPOSIXErrorDomain 12

Have you seen this before?

alick
Posts: 67
Joined: Fri Dec 09, 2011 7:52 am

Re: Problem uploading a big file

Post by alick » Mon Jan 02, 2012 8:37 am

NSPOSIXErrorDomain 12 looks like a 'cannot allocate memory' issue.

What type of iPhone/iPad device are you using.

You cannot directly see the file size from LongReach, You could 'open in' the file in another App that shows file size.

You could create a large file (known size) on the server and receive to LongReach, and then send this file back to the server to confirm that large files can be sent.

alick
Posts: 67
Joined: Fri Dec 09, 2011 7:52 am

Re: Problem uploading a big file

Post by alick » Wed Jan 04, 2012 7:24 am

LongReach can receive any size file as the content is received as a stream of bytes and directed to the file system for storage.

Apple's NSURLConnection API can only send an allocated amount of data, so the send file needs to be read and encrypted into memory before sending.

I have tested the sending of a 15MB PDF file from an iPhone 3G (iOS 4.2.1) and a 100MB file from an iPad2 (iOS 5.0.1).

Post Reply