473,382 Members | 1,252 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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:
http://aspalliance.com/cookbook/View...ecipeType=ASPX

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)
Nov 17 '05 #1
0 1465

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Home | last post by:
Hi How come I always encountered this error after executing the following command ? C:\Inetpub\wwwroot\ASP>screnc admin.asp eadmin.asp Scripting encoder object ("Scripting.Encoder") failed on...
0
by: rockstar1971 | last post by:
Hello. I’m working with the Windows Media Encoder SDK to create an online jukebox for myself, but I’m having problems getting it to work. Here’s what I want to do: I’ve got a large...
3
by: Matt | last post by:
I'm trying to simply convert a .avi file recorded by our program to a wmv file, of course compressed as possible. I've looked at the examples provided by microsoft @...
0
by: S.Kartikeyan | last post by:
Hello, I have a C# project. I wrote a project installer in VS.NET for it. It is working fine. The project uses Windows Media Encoder(WMEncoder.exe )and Windows Media Encoder...
4
by: | last post by:
Hi all, we have a need to barcode encode and display a record identifier (number) both in html in the browser and through fdf in adobe acrobat in realtime. Is this possible? Can anyone make any...
0
by: Crisco www.misericordia.com.br | last post by:
Hi, friends! I am develop a simple encoder app, one form with one button that start the encoder. This is my code: ============================================================= Option...
0
by: Crisco www.misericordia.com.br | last post by:
Hi I m working on WEBRADIO Software. im using Windows media encoder 9 SDK on Windows 2003 server using VB.NET. My current scenario is my soundcard . My application will push my server the...
0
by: sunny152 | last post by:
Hello Friends, I'm very interested to broadcast our church worship service live on internet.My web server having streaming feature and i have windows media encoder program.I usually...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.