Menu

#2 Cannot put large amounts of data into fields.

open
nobody
None
5
2008-07-30
2008-07-30
Nate Bross
No

The current version of fmDotNet does not support large amounts of data because the URL Get method does not support it.

Adding this code to the RootOfDoc(...) Method removes the limit to the amount of data.

[code]
byte[] bytes = Encoding.ASCII.GetBytes(theURL.Split('?')[1]);
rq.ContentType = "application/x-www-form-urlencoded";
rq.Method = "POST";
rq.ContentLength = bytes.Length;
Stream s = rq.GetRequestStream();
s.Write(bytes, 0, bytes.Length);
s.Flush();
s.Close();
[/code]

and changing the line

[code]
HttpWebRequest rq = (HttpWebRequest)WebRequest.Create(theURL);
[/code]

to

[code]
HttpWebRequest rq = (HttpWebRequest)WebRequest.Create(theURL.Split('?')[0]);
[/code]

This is not the best solution; however, it does not require a signature change to the RootOfDoc method, so no other changes are necessary.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.