[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: file size



The error you reported is a 404 - assuming a standard web server - that means the url you sent to the webserver is wrong or currently unavailable. You have a short HTTPAPI debug file? Or did it send the whole file and then error out?

As a test, take the 300mb file you created and delete everything in the "middle" leaving a shell of the xml. Try http_url_post_stmf again. Same error? 

Post relevant debug file  (skip the whole xml sending part) and RPG code that is doing the http_url_post_stmf stuff (setting the file name, building the url, etc).

WrtSectionToStmf is not sending a stream file to a web service.

To answer your question, there is no limit on the HTTPAPI side. It will send bytes until EOF.

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Michael Clark
Sent: Wednesday, February 26, 2014 6:14 AM
To: 'ftpapi@xxxxxxxxxxxxxxxxxxxxxx'
Subject: file size

Good Day,

Today I have implemented the latest version of CGIDEV2 which allows creation of very large XML files using the new WrtSectionToStmf command, instead of writing to a buffer.

I have created a 300mb xml file and have tried to send it to a web service using http_url_post_stmf.

The program fails with error 404 - File or directory not found and creates the following result file.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
  <h2>404 - File or directory not found.</h2>
  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
</fieldset></div>
</div>
</body>
</html>



If a small file is created then I do not get this error.

Will it be possible to send this stream file to a web service using WrtSectionToStmf or is this file too large.
If so what is the size limit.
I would really appreciate some guidance.

Regards,
Michael Clark


This e-mail contains proprietary and confidential information some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this e-mail,please notify the author by replying to this e-mail and then deleting same.If you are not the intended recipient you must not use, disclose, distribute, copy, print or rely on this e-mail. Clicks Group Limited, its subsidiaries and associated companies is not liable for the security of information sent by e-mail and accepts no liability of whatsoever nature for any loss, damage or expense resulting, directly or indirectly, from the access of this e-mail or any attachments hereto.




______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------