Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,i am writing webservice for file upload ....
for string values ,we are specifying string.IsNullOrEmpty
C#
F_NAME = ((string.IsNullOrEmpty(F_NAME) ? string.Empty : F_NAME.Trim()));

i dont know how to write for varbinary ...Please help me as soon as possible
Posted
Updated 20-May-12 19:07pm
v2
Comments
Member 8405530 21-May-12 8:14am    
i am writing webservices for file upload ....i am giving three input parameters..file id ,file name and content
fileid-varchar type
filename-varchar type
content -varbinary type
/* FOR FILE ID */
file_id = ((string.IsNullOrEmpty(file_id) ? string.Empty : file_id.Trim()));


/*FOR FILENAME */


F_NAME = ((string.IsNullOrEmpty(F_NAME) ? string.Empty : F_NAME.Trim()));

i dont know how to pass the varbinary value

Content=(( wat should come here))


Please help me as soon as possible

1 solution

you need byte[] to store varbinary.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900