Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert from null to byte array?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01337009
Message ID:
01337074
Vues:
13
>Would it help if you initialize the byte array to an empty array instead of null?
>Byte[] imgByte = new byte[0];
>

Yes, it would definitely help. I solved it by always assigning FileUpload.FileBytes, but your solution is simpler. Thanks.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform