For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
set objReturn = Server.CreateObject("Msxml2.DOMDocument")
set objHTTP = server.CreateObject("Msxml2.ServerXMLHTTP")
objHTTP.setTimeouts lResolve, lConnect, lSend, lReceive
objHTTP.open "POST", strURL, False
on error resume next
objHTTP.setRequestHeader "Content-Type", "text/xml; charset=UTF-8"
objHTTP.setRequestHeader "Content-Disposition", "attachment;filename=""PDFTEST.pdf"""
The response I get is per below in binary
Content-Type: text/xml; charset=utf-8
****XML related document****
****PDF related document****
I could output into text using below function
Binary to String function
Dim I, S
For I = 1 To LenB(Binary)
S = S & Chr(AscB(MidB(Binary, I, 1)))
BinaryToString = S
Attachment is read like below:
'--- attachments ---'
'Create Datastream object to save the file
set DataStream = CreateObject("ADODB.Stream")
'Set type to binary
DataStream.Type = 1
'Create bianry datastream of the file
DataStream.Write objHTTP.ResponseBody 'strReturnfile
DataStream.Position = 0
'Set the File System Object, so we can check to see if it already exists.
set FSO = Createobject("Scripting.FileSystemObject")
'If the file already exists, delete it
if FSO.FileExists(SaveAsFile) then
set FSO = Nothing
'Write the file to the location on the server
'Delete Datastream object
set DataStream = Nothing
'--- attachments end---'
Now my problem is I need to just read XML using loadXML()
Can anyone please help as I have spent few days and really lost.
And it is repeating things 6 and 7 times throughout the whole website. When I search for certain artists & titles, they never show up because its reached its limitations because of the repetitions. How do I remove these repeats, is java script not good in this situation. The website is Darren Castle's Karaoke List
Hi, I am Vikas I need your help regarding permalink of url. I have my own website and i have problem of permalink which i want to solve so tell me how i can sort out this issue i want to show my url SEO friendly so guide me to fix this issue.
The answer depends of many, many things, none of which you have mentioned. If every website functioned exactly the same then someone would have a "one size fits all" answer, but web sites don't work like that so without knowing the details of your specific implementation it's impossible to help.
I am already using HTML file api to read files from local system and those file(s) are simply photo(s) which the client will choose to use it to be displayed on the front-end banners(s). Now I need to send those photo(s) I've read to the server to be stored within a specific folder there and I do not know what I have to do for that even if I have a Web API (ASP.NET Web API) that accepts data sent to it then doing the storing functionality how can I send the data to those method(s) within the Web API I mean the jQuery get, post, and getJson methods need a URL for the Web API so do I have to write the IP address of the server (which I do not know in advance) in this URL or I can use something like this ./myapi/mycontroller to call the methods within my Web API?!!!