Click here to Skip to main content
15,917,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to convert an image file (jpg) to byte array base 64 in a VB.Net system
Posted
Comments
Ademir Duarte 24-Jun-10 9:47am    
Thank you very much, it worked

 
Share this answer
 
Comments
Ademir Duarte 22-Jun-10 13:13pm    
Thanks, its a good solution, but I need to consume a webservice that loads pictures (.jpg) to the site. The method requires a bytearray base64. This is my problem.
Is this byte array a base64 binary array?
 
Share this answer
 
File.Read/WriteAllBytes will easily load and store a file as a byte array and Convert.To/FromBase64CharArray and Convert.To/FromBase64String will convert byte arrays to/from base 64 formats.
 
Share this answer
 
Comments
Ademir Duarte 22-Jun-10 13:09pm    
Thanks Jimmanuel,but I need a byte array, not a string. I have to consume a webservice that loads the fotos and the method requires a byte array base64. This is my problem
Ademir Duarte 24-Jun-10 9:46am    
Thank your very much. It worked

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