Hello, I am Peggie. I would like to ask when browsing the file and upload to the database, which datatype shld be use? One thing to take note is that, I would like to upload files instead of images. Thanks.
Which datatype to use in database when browsing the file using form
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Dec 24, 2008, 5:13 PM EST
Peggie Loh7 reputationPosted Dec 24, 2008, 7:12 PM EST
ArshadRank #2,492 · 564 reputationPosted Dec 30, 2008, 10:23 AM EST
VB.NET
Public Function Encryption(ByVal strValue As String) As Byte()
Dim arrBytPass As Byte() = Nothing
Dim intCount As Integer
For intCount = 1 To Len(strValue )
// Do your Encryption here, As per your requirement
Next
Encryption=arrBytPass
End Function
C#
public byte[] Encryption(string strValue)
{
byte[] arrBytPass = null;
int intCount = 0;
for (intCount = 1; intCount <= Strings.Len(strValue); intCount++)
{
//Do your Encryption here, As per your requirement
}
return arrBytPass;
}