I have to provide a client with a method to retrieve data from an Audiometer. The equipment is discontinued, but they have six of these and are used every work day. Using port monitoring and the DUMP command on the peripheral I was able to read the data and save to file. Now my challenge is decoding each line. It appears that only a section of the string is not in plain values.I added the pipe separators for clarity. I have determined those columns are: EMPID | DateTime | TechID | Results | ResultType = Test.[code]
I need to validate a basic authorization header that is being sent to my HttpListener in VB.NET. I'm grabbing the header like so (feel free to point out better ways to do this as well):
I need to know how to decode GIF pixel blocks. The example block that they are using look like this "00 51 FC 1B 28 70 A0 C1 83 01 01" and i cant under stand how they converts that to "100 028 0FF 103 102 103 106 107 101" !?!?I mean... 00 51 FC 1B 28 70 A0 C1 83 01 01 === 00000000 01010001 11111100 00011011 00101000 01110000 10100000 11000001 10000011 00000001 00000001 if I read that like 9bit each it no way I get this result != "100 028 0FF 103 102 103 106 107 101" ?
I've been developing a SAML 2.0 SSO. I got a problem in decoding 64Base string to convert it into an xml then read the content later on.Below is the code I've been using:
Protected Function uf_getIDFromSAMLRequest(ByVal as_samlRequest As String) As String Dim ms As New MemoryStream(Convert.FromBase64String(as_samlRequest))
I have a text like : Code: aHR0cDovL3d3dy5kZXNpY2xpeC5jb20=AAAAAAAZGVzaWNsaXguY29t aHR0cDovL3d3dy5zYW5kcmFjbGlja3MuY29tAAAAAAAd3d3LnNhbmRyYWNsaWNrcy5jb20v aHR0cHM6Ly93d3cuYnV4b3V0LmNvbQ==AAAAAAAd3d3LmJ1eG91dC5jb20= aHR0cDovL3d3dy5vc29jbGljay5jb20=AAAAAAAT3NvQ2xpY2s=
And I want.. an example... These strings are encrypted (excepting AAAAAA). I want to call Decode (string) for: Code: aHR0cDovL3d3dy5kZXNpY2xpeC5jb20=AAAAAAAZGVzaWNsaXguY29t aHR0cDovL3d3dy5zYW5kcmFjbGlja3MuY29tAAAAAAAd3d3LnNhbmRyYWNsaWNrcy5jb20v aHR0cHM6Ly93d3cuYnV4b3V0LmNvbQ==AAAAAAAd3d3LmJ1eG91dC5jb20= aHR0cDovL3d3dy5vc29jbGljay5jb20=AAAAAAAT3NvQ2xpY2s=
And insert it into this code: HTML Code: :idea: [url=VALUE AFTER AAAAAA]VALUE BEFORE AAAAAA[/url] I know that this not HTML...
I'd like to build a simple json looking like this: {"Count" : "55", "total" : "125,55"}On my vb method i'm doing this to encode it:Dim json As String = "{""Count"" : "" " & intCount & " "", ""total"" : "" " & intTotal & " "" }"But I think Im missing something to escape the quotes, when my browser received it, it looks like this: {"d":"{"Count" : " 5 ", "total" : " 55 " }"}making it unreadable for jQuery.
i have been working on VS 2008 for past 6 months and right now i am working on some little project which requires the value in reg_binary in XP to be decoded to readable string of the original form
I am trying to encode and decode using the unicode language and I don't know why I am getting these errors.
Public Class Form1 Dim strEncodedBytes As String Dim chrTestChar As Char Dim intCharCode As Integer Dim strCodedMessage As String Dim strMessage As String
I rewrote the code to vb.Net and after I get the data from the table, I call
HttpContext.Current.Server.UrlDecode(string) to decode the string, add it existing mark up for an email and send it on its way.
Note that with Visual Studio i can see the HTML markup as it appears in the email, and ALL of the Chinese data is EXACTLY as I would expect it.
When the emial is received i get "???????????" characters where there should be the Chinese characters.
What I do not understand:
What Server.URLEncode actually encodes the data to. It appears to be HEX.
What the array of "?" means in outlook or any other email system that opens it, I assume it means "Hey i cant convert this stuff, so here is a question mark for kicks, good luck."
I am trying to write a function which has the ability to decode a string from utf8. I am getting the string as a response from a webserver.I am using the following line to do the decoding:
I'm using the zxing C# port to decode a QR barcode.The code is simple and based on an example I found online (see below).The problem is, it always throws an "Index was outside the bounds of the array" exception.My code sample happen to be in VB.NET, but the zxing library is implemented in C#
Dim re As qrcode.QRCodeReader re = New qrcode.QRCodeReader() Dim Img As New Bitmap("<image file path here>")
This is kind of a brain twister. First, what it involves. I'm writing an application that is working with values sent to and received from an 8 bit micro-controller. There are 8 bits of specified values. Here they are. bit1 = 1, bit2 = 2, bit3 = 4, bit4 = 8, bit5 = 16, bit6 = 32, bit7 = 64 and bit8 = 128.I made a routine that uses 8 checkboxes to add the values for sending them to the micro-controller. That wasn't too hard. In my appp there are 8 checkboxes. Each checkbox assigns one of the specific bit values to a variable (or subtracts it when unchecked). The total of the variable is then displayed in a textbox and ready to send.Now the hard part that ed to take any number between 0 and 255 apart in values that will be a combination of the numbers (1,2,4,8,16,32,64,128) above and show each checkbox which is assigned those numbers to be checked.
Dim lStatementText As String Dim lStatementString As New System.Text.StringBuilder lStatementString.Append(RndRes.Forms.txt_request) lStatementString.Append(" ") lStatementString.Append("<b><a>")
[Code]...
Where Request.ID, Request.Description and also RndRes.Forms.txt_* are all strings. I want to display the string I build up here in a Infragistics FormattedLinkLabel. The problem is that if any of the strigs from the Request class contains a HTML character, the label is not displayed properly and the HTML encoding is broken.I need to find a function that masks the HTML codes.
what i need to do is open a txt file, read line by line, decode each line into an array and display. Now all works ok apart from one line.
sTextLine = objReader.ReadLine() <-- Value of string cannot be converted.
full code here ------------- Dim objReader As New System.IO.StreamReader(sOpenFile.Text) Dim sTextLine As New ArrayList() Dim sText As String = "" Dim i As Integer = 0
My EmpTable is in SQLserver & Data entry using Visual Basic 2010 "List format" on Windows form.Sir my requirement, if I enter (Date of Birth) in DOB column the Age should display on the same form in Textbox.
In my vb.net winform application, I am moving the file from one folder to another. I need to store the datetimevalue when the transfer has been done. Later I need to show this DateTime value in my Grid. Here is the code i have written, but not able to store the datetime value.
In vb.net I have control named checkbox1 that I can see at dropdown menu in properties tab. but in designer I am not able to locate it... Also when I am selecting CheckBox1 from properties' dropdown menu, no checkbox in designer gets highlighted.... How to find that control in designer?
I have been finding a VB, or C# or C++ Dll injector for a long time. Ive decided to make one. So in VB i went to toolbar and found "Process" and i didnt know what to do after. how to make one (dont post code). Ive tried using the "GetProcessByID" thing but dont work.
I'm looking to take a screen shot with my program and try to find an image inside of it. Is this possible?In other words, I am trying to find an image inside of a larger image. It would be great if it could be a screen shot of just the webbrowser form.
I can't find out how to find and open the program wow.exe using VB.
I can get it to open mine but it can't open other peoples they get errors when they try, I have xp and the Vista and other people can't get it to open theirs so I need to know how to find the file then open it.
The code I'm using is this:
Private Sub Play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Play.Click Dim installpath As String = String.Empty
I have some code that generates 15 random numbers between 1 and 100 and prints the 15 numbers in a listbox. I want to be able to find the max and min numbers in that list. How would I go about finding those values? I'm new to VB so a solution involving basic string/array manipulation would be preferred.
I am trying to find the name of the first worksheet in excel. I can get the list of sheets, but i need to know which on is the first one in the workbook. using vs 2010 and office 2007
I am trying to run some code on Page_PreRender but only want it to run on hyperlinks within a certain DIV. What the code does is change the colour of a hyperlink if the NavigateUrl = the URL of the page the user is on. I have some code that works but it changes the colour of every link on the page that matches when I only want it to happen within a certain div.
I have the following Leak situation in a VB.NET (.NET2) application: a form - DetailTache (TaskDetails) - in my MDI application is not garbage collected is not collected ofter open/close.
EDIT: Result search from projet of WinComboRowSelected Event. There are 3 usages of this word in application:
Declaration in Class WinCombo: Event WinComboRowSelected(ByVal sender... (only one) Raising: RaiseEvent WinComboRowSelected(sender, (3 raisings) Usage: ...e As Keolis.ctlWinCombo.WinCombo.WinComboRowSelectedEventArgs) Handles cmbProduit1.WinComboRowSelected (multiple handles).