Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert from null to byte array?
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01337009
Message ID:
01337074
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform