views:

92

answers:

3

HI all

I need to send an dynamically generated html to server using html form, html can be bigger size at present it is 1MB

I m sending an dynamical generated html to server using form hidden input field. at server side exception is : too large content..

The dynamically generated html is used to generate pdf and generated pdf will send back to browser in same request of response.

How to handle bigger size html which is generated dynamically.

Please help me out.

Thanks kumar kasimala.

A: 

If you use asp.net you can do like below:

In Web.config file, add

<httpRuntime maxRequestLength="100000" executionTimeout="360"/>

under <system.web>

Minh Nguyen
I m using java at server side
kumar kasimala
A: 

Split it.

1 Try to split the content to multiple inputs. Your implementation might have problem with that...

but that's not too probable

2 Split the content to multiple requests and send them with AJAX. Collect the responses and be sure to send it in the right order (not all requests at once). Last request should confirm it's the end and load a page returning the pdf

naugtur
and get a higher accept rate. more people will be willing to help
naugtur
A: 

I googled a bit on your problem and hit upon this page which says that the post size is set by the server in its configuration and can be changed by resetting it - http://forums.sun.com/thread.jspa?threadID=5400480

Gaurav Saxena