| Streams (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| Copied from [aspngfreeforall] to [ngfx io] by Charles M. Carroll charlesmarkcarroll@yahoo.com hi all, I have a stream that I'm getting from the web in the form of Stream WebRequest.GetResponse().GetResponseStream(); usually this will be an image, .doc, or .pdf. I need to convert it to a byte[]. Because, in this case, Stream length is unknown (because web request streams don't support seek) how do ... |
|
| File.Exists(Path) Returns false when the file EXISTS (6 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngfreeforall] to [ngfx io] by Devin devinr@drone interactive.com Goodmorning ASP.net Gurus, My problem is quite simple ... file.exists returns false every time! I response.write the path that i am checking, copy it, paste it into the location bar and it loads up no problem... WHAT GIVES? i obviously have access to the file because i can look at it if i paste it into the loc bar. Has... |
|
| What is a low surrogate error? (in StreamWriter.Write) (3 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Does anybody know what this error means? A fatal error has occured in the Application. Additional Information: System.ArgumentException: Found a low surrogate char without a preceding high surrogate at index: 738. The input may not be in this encoding, or may not contain valid Unicode (UTF 16) characters. Parameter name: chars at System.Text.UTF8Encoding.GetBytes(Char* chars, Int32 charIndex, Int3... |
|
| Uploading Files w/o File Input (6 replies) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngfreeforall] to [ngfx io] by devin devinr@drone interactive.com I am trying to figure out how to go about Uploading a file(s) based on a list. This list is provided to me in one of two ways. 1) through an XML document that is generated and posted to me from a form element, or 2) through an XML document that is uploaded to me as a file itself. In these documents there are graphic ta... |
|
| keep WebRequest from following redirects (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| I have a login page that I'm doing a WebRequest against. The login page returns an "HTTP/1.1 302 Object moved" *and* some cookies that validate the user. It appears that WebRequest follows this redirect *but* doesn't pass the cookie (I'm not surprised and this is kinda expected). However, what I want is for the WebRequest to *not* follow the redirect. I want to grab the cookie values and then on t... |
|
| WebRequest Page Error Information (4 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngfreeforall] to [ngfx io] by Devin devinr@drone interactive.com I have a function that's part of a larger process that validates a variety of links on my site, I was wondering if there was a way to catch the HTTP page error information such as 404, 403, 500? Also can I get access to the size of the page and any other header information? Function GetWebpage(StrHttpURL AS String) AS ... |
|
| Dns.GetHostByAddress (2 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngcs] to [ngfx io] by Charles M. Carroll charlesmarkcarroll@yahoo.com Is it safe to use this on a start page is it possible that GetHostByAddress will take forever to complete? Dns.GetHostByAddress |
|
| free disk space (4 replies, VIP) |
| ASPFriends.com 'ngfx-io' list |
| I can't find anything in the docs about listing the free disk space on a drive. Does anyone know how to do this? Thanks, ~Brad Kingsley Microsoft MVP ASP Windows 2000 MCSE http://www.orcsweb.com/ Windows 2000 Advanced Hosting #1 in Service and Support [This E mail scanned for viruses by Declude Virus] |
|
| Not Answered: Creating and sharing directories (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hi, How can I, using VB.Net, create a directory in a remote computer assuming that i have the privileges. Im using Directory.CreateDirectory( file://computer/c$/testing \\computer\c$\testing) When the computer is my machine it works when it is another machine it says that cand find the path. Am i doing this the right way? How can i share a directory trough VB.Net? Thanks in advance. Filipe Portuga... |
|
| serialize but not to a file (2 replies) |
| ASPFriends.com 'ngfx-io' list |
| Moved from [aspngdata] to [ngfx io] by Bob Levittan blevittan@hotmail.com I need to serialize an object and then get the string produced from the process. Persistance is not required so I don't want to serialize to a file. Can I serialize to a memory or buffer stream or something? I'm looking for an example of how to do this. TIA, Brook |
|
| FileSystemObject or .NET equivalent (3 replies) |
| ASPFriends.com 'ngfx-io' list |
| Hi, Does anyone have, or know of a tutorial or examples for reading directory contents in VB.NET? Thanks, Matthew |
|