Ask a Question related to ASP.NET General, Design and Development.
-
iMonkey #1
encoder.GetString() help
I have tried the following to convert an encrypted byte() into a string to
write it to a database:
Dim encoding as new UTF8Encoding()
Dim EncNum as String = encoding.GetString(
encoder.GetString(cypherText) )
CypherText being the string that has just been encrypted which is now in
stored using Byte() I believe
When I run this I get the following error:
BC30311: Value of type 'String' cannot be converted to '1-dimensional
array of Byte'.
I dont have any idea what I should try now as I have done nothing like this
before, any help will be much appreciated!
For reference purposes and if anyone wants it the code I used to encrypt my
string is located here:
[url]http://aspalliance.com/cookbook/ViewSource.aspx?Filename=Recipe1509vb.aspx&RecipeT ype=ASPX[/url]
I have the decryption piece of code on a different page, this seems to be
working but can test it properly as it says the string that I have written
to the dtabase is not the correct length (This was before I tried to convert
it from Byte to string)
iMonkey Guest
-
opengl: What happened to GetString?
hi, on ruby173 and previous this worked: GL.GetString( GL::VERSION) but with 180-10 i am getting this error message: :in `GetString': NULL... -
inserting option values into drop down lists with getstring when using distinct in the SQL
I don't know what your problem is. It works fine for me. Here is my code: <% dim cn,rs set cn=server.CreateObject("adodb.connection") ... -
getstring really slow
Hi, Hope somebody can help because i've looked everywhere else fo ran answer. I'm connecting to an Access table with 100+ rows of data of approx... -
datareader.getstring(0) error
Hi, my code is very simple. dim cm as oledbcommand= new oledbcommand("select * from page " ,cn) cn.open() Dim dr As OleDbDataReader =... -
can't getstring & display datareader
Hi, I want to display a single record datareader and get a value from it. But I can't do both together. After "dim dr as...



Reply With Quote

