While i am creating an .tex file using FileStream and binar writer getting some extra characters as below.
Eg: Plese help me out from this..
View Complete Post
What are the options for handling file uploads to reduce the memory footprint? Is there a way to upload in chunks? Is there a way to stream upload directly to disk instead of loading entire file in server memory?
Thanks
Hello,
I have the following subroutine in an asp.net application class. The subroutine writes data to a text file upon application login. My question is that if this function was called at the same time by two different users would it cause any kind of error. Is there a need for a try catch?
Public Shared Sub writeToLogFile(ByVal UserName As String) Dim strLogMessage As String = String.Empty Dim strLogFile As String = System.Web.HttpContext.Current.Server.MapPath("~/Log.txt") Dim swLog As StreamWriter strLogMessage = DateTime.Now.ToShortDateString().ToString() " ==> " & UserName
If Not File.Exists(strLogFile) Then swLog = New StreamWriter(strLogFile) Else swLog = File.AppendText(strLogFile) End If
swLog.WriteLine(strLogMessage) &nbs
Hi;
I am trying to understand where the additional file name is coming from in my Page directives Inherits
attribute like so :
inherits ="Track_Milestones2, App_Web_techsrvcs_track_milestones2.aspx.cdcab7d2"
inherits
Is the result of this app being published on my local server at one time or could this
page have been compiled on a server ?
Thanks for your insights !
Hi I am writing to excel file using jet driver. If the length of value exceeds 255 characters i get the below error. 'The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data' Please could you provide a solution to how can i add values with length greater than 255. Excel file is 97-2003 format.
System.Data.OleDb.OleDbCommand command = new System.Data.OleDb.OleDbCommand();
System.Data.OleDb.OleDbConnection connection =
new System.Data.OleDb.OleDbConnection(
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + destinationFilePath + ";Extended Properties=Excel 8.0;");
command.CommandText = "Insert into [sheet1$] (col1, col2) values ('1', 'TEXT Message greater than 255 characters')
Once again I have trawled the web for a WPF (VB) example of writing to a CSV file. I have found several in C# and Forms VB and managed to work out reading from CSV. However, the writing version I have come up with adds a blank line after each actual line. Also the first cell written to the CSV file contains some wierd characters just before the genuine content. (i.e. #?!Name1 instead of just Name1); I have shown the code below.
Sub writeCSVData() If File.Exists("resources\csvData.csv") Then File.Delete("resources\csvData.csv") Else MsgBox("resources\csvData.csv doesn't exist") End If MyFileName = "resources\csvData.csv" myCSVWriter = My.Computer.FileSystem.OpenTextFileWriter(MyFileName, True) For y = 0 To 14 myNewLine = ""
Using vb.net/asp.net 2005.
another spanish character issue: I am parsing special spanish characters, removing the tildes (EX: "ñ" becomes "n") that customers send us in files, in tab delimited files that is.
When the characters are valid spanish characters (like "ñ") then this is not an issue, however some of the files that we get have characters such as:
"Niño"
Which should actually be:
"Niño"
Has anyone seen this and know any solution? The "ñ" is fine but I am not certain what to do about the "ñ".
this is only one example, other spanish characters are listed as a question mark "?" so this is causing some issues.
thanks
MC
SQLMessage = "This task ran at " & Now() & " - InfoMessage - "
Dim sw As StreamWriter Dim path As String = outputfilepath Try 'Append test to existing log file sw = File.AppendText(path) sw.WriteLine(SQLMessage) sw.Flush() sw.Close() Catch ex As Exception
Finally End Try
In some of my logs I see this:
Actually I can't show you what I'm seeing
When I copy the Control characters from Notepad to here they are converted to Chinese characters!! ARGH!
Obviously I'd expect to at least see the This task ran at <<time>> - InfoMessage -
Where does this control string come from that gets written to the log file??
I'd seen the large log files were all looking like this. I cl
Finally I did manage to build an application that supports unicode characters..
Now my application generates a zip file which contains an XML file. I want to unzip the zip file to view the contents of an XML file.
i am unable to unzip because the name of the zip file/as well as XMl file has Unicode characters(i.e. japanese Name) and it gives some error.
If i generate the XML file with same contents but name of the files in English then i can view the contents of the XML file.
My query is i want to be able to unzip the XML file when the name of the file contains unicode characters in it.
as per my research up till now, we either require a compatible winzip software or we have to create an utility for the same.
I need to know how to go about it. It's a little urgent as well.
Thnx in advance.
I can unzip file with the name: PMTI_MSPS_US_GAB_JAPANESE_PWA_Project Plan1_PPM_2010100105260495.zip
I am unable to unzip the file with the name: PMTI_MSPS_US_GAB_JAPANESE_PWA_????????1_PPM_2010093006260431.zip
I wanto unzip this file.
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend