Ask a Question related to ASP Database, Design and Development.
-
Ken #1
ADODB Stream does not work
I am trying to manage a text file, but cannot read the
file properly (nothing displays) and rewriting the data
seems to only affect the buffer and not the text itself.
Can anyone point out what's wrong?
The following is the code. Also, objStream.Close causes
error:
Provider error '80004005'
Unspecified error
I appreciate your help.
Ken
Dim objStream, objRecord, strURLofFile, strText
strURLofFile = "http://****.com/simpletext.txt"
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open "URL=" & strURLofFile, adModeReadWrite,
8 'adOpenStreamFromURL
objStream.Charset = "ascii"
strText = objStream.ReadText
Response.Write "strText=" & strText
objStream.Position = 0
objStream.SetEOS
objStream.WriteText ("add this line" + vbcrlf + strText)
objStream.Close
set objStream = Nothing
Ken Guest
-
Handling Object Stream / Cross Ref stream in PDF 1.4
Hi, My PDF Application handles only PDF spec 1.4 and when my Application process a PDF file generated with Acrobat ~ PDF 1.6, I see some Cross... -
XObject external stream over HTTP doesn't work with PDF-Library 6
Hello, want to add external JPEG files to PDF files with xobjects and external streams like described in the PDF reference... .... /FS /URL /F... -
SoapExtension Stream proeprty doesn't work...
Hello, I'm writing a SoapExtension that processes SoapServerMessages. At one point in the BeforeSerialize or AfterSerialize phase, I need access... -
ADODB.Stream Problem in Windows2003 Enterprise Edition!
I experienced a boring error while I migrated my company's ASP application to a new Windows2003 server. That's the code raised the error! It's used... -
Server.CreateObject("ADODB.Stream")
Does anyone know an alternative to this? I am using a ChiliSoft server and this isn't supported. TIA, Andrew * * * Sent via DevBuilder...



Reply With Quote

