Hi,
I'm trying to work with LoadFromStream method but it fails.
Does it requires a special data format ?
I'm feeding it with xmlhttp.responseStream. There's no error but no chart either.
Here is the code:
set objXmlHttp = CreateObject("Microsoft.XMLHTTP")
objXmlHttp.open "POST","/Applets/TeeChart/TeeFromWeb.asp?userid=100&teePath=path,false
objXmlHttp.send
objTChart.Import.LoadFromStream objXmlHttp.responseStream
set objXmlHttp = nothing
The thing works only like this:
objTChart.Import.LoadFromURL "http://xx/Applets/TeeChart/TeeFromWeb.a ... ePath=path
The TeeFromWeb.asp successfully reads the tee file as binary data. It returns the data with Response.binaryWrite.
Do I have to convert objXmlHttp.responseStream to some array ? How do I do that in VBScript
and JavaScript ?
Thanks for your help,
Ofer.
LoadFromStream
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi --
http://www.4guysfromrolla.com/webtech/110100-1.shtml
Maybe using syntax similar to:
will work for you ...
Mmm ... have a look at "Getting Binary Data" on:The TeeFromWeb.asp successfully reads the tee file as binary data. It returns the data with Response.binaryWrite.
Do I have to convert objXmlHttp.responseStream to some array ? How do I do that in VBScript
and JavaScript ?
http://www.4guysfromrolla.com/webtech/110100-1.shtml
Maybe using syntax similar to:
Code: Select all
objTChart.Import.LoadFromStream Response.binaryWrite(objXmlHttp.responseBody)
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/