.net - ZXING Port Fails To Decode Qrcode?

Jun 8, 2011

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>")

[code]....

View 1 Replies


ADVERTISEMENT

Virtual COM Port Fails To Open?

Jan 10, 2011

I have a few USB devices that use standard Microsoft Virtual COM Port drivers. More specifically, I believe they use the "Usbser.sys" driver. Whenever I plug my USB devices in, they always shows up in the Device Manager as a COM port, however, sometimes I am unable to open that COM port. This problem occurs on both Windows XP SP3 and windows 7 machines (The only operating systems I have tested this on).

To be a little clearer, I can plug my USB device in, and then successfully open the COM port. I unplug my USB device, then plug it back in, and I am unable to open the COM port. The only solution to this problem is to restart my PC. Is there any solution in VB.net to reset any entrees made to the Windows system when the USB device is plugged in? Has anyone come across this problem and resolved it via a VB.Net solution?

View 10 Replies

Console CTRL-C Handling When Using Serial Port Fails?

Dec 30, 2009

Using VB.Net I've added a CTRL-C handler:

AddHandler Console.CancelKeyPress, AddressOf QuitHandler

Which does the following:

Private Sub QuitHandler(ByVal sender As Object, ByVal args As ConsoleCancelEventArgs)
Console.WriteLine("Quitting...")

[Code]....

I then have a main loop which just runs until Quit=True.

This all works until I start reading from the serial port:

Private Sub port_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles Port.DataReceived

at which point the CTRL-C handler gets ignored for about 30secs at which point the console app just terminates without going through the cleanup code.

View 2 Replies

Qr Code - Integrating A QRCode Library?

Aug 27, 2010

I have been looking for a way to create QR Codes using VB.Net but I am going round in circles. I found some samples but they use C#. Also read about ZXing library but I have no idea about how to reference it (or what to reference). Can you suggest a tutorial (for complete beginners) as to how to go about finding an open source library and referencing it i

View 18 Replies

.net - How To Decode UUENCODE

Nov 8, 2011

I have a project that i am getting an XML file that has an embedded PDF file that is encode in UUencode. Is there anyway to do this in VB.net?

View 1 Replies

Decode And RequestQueryString?

Jun 24, 2012

I would love to read the QueryString value of t. So i can parse it as GUIDUnfortunatelly that &amp; thing, seems to mess things up.

View 1 Replies

Finding A Decode Key

Jul 19, 2011

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]

View 8 Replies

Decode Basic Authorization In .NET?

May 8, 2009

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):

EncodedAuth = Context.Request.Headers.GetValues("Authorization")(1)

Now how do I decode them? I understand the theory but I can't seem to find the right code.

View 1 Replies

How To Decode GIF Pixel Blocks

May 24, 2009

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" ?

View 12 Replies

.net - Decode SAML 2.0 64Base String?

Jun 6, 2011

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))

[code]....

View 1 Replies

Decode (Encrypted) Strings By Parts

Nov 17, 2008

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...

View 2 Replies

Decode Json On Ajax Request

May 25, 2012

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.

View 1 Replies

Decode My Code From Incorrect Words?

Feb 8, 2012

I have collected and created a lo of nice programs but after infected it was deleted by viruses and now i found the program which recovered from ntfs.

But the problem with that i can't decode my project codes.

I tried to find the sulution how to decode word strings [code]...

View 1 Replies

Decode The Reg_binary To Readable Ascii?

Jan 2, 2010

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

View 2 Replies

Encode And Decode Using The Unicode Language?

Dec 30, 2008

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

[Code]...

View 5 Replies

Encode/Decode Chinese Characters?

Nov 10, 2011

I have a call to Server.URLEncode(string) from an old asp file that stores user input into a table. In this case it was a string of Chinese charters.

The actual data is :

%E8%B0%B7%E6%AD%8C%E7%9A%84%E5%89%8D%E6%99%AF%E9%BA%A6%E5%85%8B%E6%96%AF%E9%9F%A6

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."

View 6 Replies

Forms :: String Encode And Decode?

Sep 25, 2009

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:

DecodeReply += System.Text.Encoding.ASCII.GetString(System.Text.Encoding.UTF8.GetBytes(temparray(i).ToString))

[code].....

View 4 Replies

Captcha - Read And Decode Image To Text

Nov 22, 2010

I want to read and decode image to text. Like megaupload captcha how I can convert the image to text or how to read it as words.

View 10 Replies

Creating A Routine To Decode A 0-255 Number Into Specific Values?

Oct 22, 2011

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.

View 6 Replies

.Net Function To Replace/encode&decode HTML Characters In String?

Jul 30, 2010

I have the following code:

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.

View 2 Replies

Read The Data From Barcode Weight Scales By Serial Port And TcpIp Port?

Nov 27, 2010

I'm mohammed from Oman ,I'm visual studio.net programmer How I can Read the Data From Barcode Weight scales By Serial port and TcpIp port

View 7 Replies

Get FullName From Available Serial Port (Com Port) From Device Manager In Windows Form With .net?

Jul 25, 2011

I have a Windows form.in windows form have a combo box that give me a list of available port serial with it code (Dim ports As String() =SerialPort.GetPortNames())for example( Com1,Com8,Com15,...).but I want to give me fullname of serial port in device manager for example in dvice manager is these (Comunication Port(COM1) - Printer Port(LPT1) And USB Serial Port(COM8)).how to Get it?

View 2 Replies

Detect The Address And Port Number Of The Parallel Port In Computer?

Jun 9, 2010

I would like to detect the Address and Port number of the Parallel Port in computer.

View 4 Replies

The Given Port Name Does Not Start With COM/com Or Does Not Resolve To A Valid Serial Port?

Aug 2, 2011

If I uninstall the COM1 and reboot, it works. If I shut down (power off) and restart, I get the message below. If I uninstall then click on Scan for Hardware Changes,The given port name does not start with COM/com or does not resolve to a valid serial port. Parameter name:portName

View 8 Replies

Communications :: .net MSComm Port USB 4 Port Relay?

Oct 20, 2011

I am trying to get my 4 port USB relay board to work in VB.net using the COM PORT. I found some code from a poster who has the 16 port USB relay version. When trying his code i can only get it to turn on relays 1-3 all at the same time. The product can be found here: USB 4 port relay

"01+//" - Relay 1 is switched ON
"01-//" - Relay 1 is switched OFF
"02+//" - Relay 2 is switched ON
"02-//" - Relay 2 is switched OFF

[code].....

So i am confused as to how to separate each relay out with that code above and just be able to turn on any number 1-4 relay on or off independently from each other!

View 1 Replies

MSComm Port USB 4 Port Relay

Oct 20, 2011

I am trying to get my 4 port USB relay board to work in VB.net using the COM PORT. I found some code from a poster who has the 16 port USB relay version. When trying his code i can only get it to turn on relays 1-3 all at the same time. The product can be found here: USB 4 port relay I was following what the guy in the post was doing to turn his on:

[Code]...

View 6 Replies

Communications :: Serial Port - Run Program, "Access To The Port 'COM1' Is Denied"?

Oct 15, 2008

Im having problem with the Serial Port. When i run my program, "Access to the port 'COM1' is denied". What does that mean? Im not sure whats happening because theres no error in my code. Someone suggest me to use 'COM2'. Which is also the same result. I have a microcontroller, programmed and run it. And i need to capture the data onto my vb, which is on a multiline textbox. How to i do that?Just to double check my code?

[code]...

View 1 Replies

VS 2008 Open A Txt File, Read Line By Line, Decode Each Line Into An Array And Display?

Oct 14, 2011

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

[code]....

View 3 Replies

Reading Serial Port Read Data From Serial Port?

Aug 16, 2011

i am a absolute beginner and i want to use vb to receive data from micro controller through serial port using rs232 standards, i found this code to receive the data serially, can any one tell me where should i paste this code, so that the data received will be displayed in message box.Private Sub DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) HandlesSerialPort1.DataReceived

[Code]...

View 9 Replies

Serial Port Example Code - Connect To A Modem Thru The Serial Port

Oct 26, 2011

The link below has code to connect to a modem thru the serial port but it is for an earlier version of VB. when I convert the code, it does not fully convert and has 4 errors that prevent building the project. can someone tell me what needs to be changed or added?

[URL]

Note: the error: not CLS-Compliant

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved