TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mahesh Patil
NA
41
10.5k
Convert Base64(androide) into byte[] array in WCF
Jul 3 2014 3:30 AM
I have Problem To Convert base64 srting which is post from Androide App
I Need to convert it I?nto Byte[] Array I WCF Service
My Androide Posted Base64 string is
base64 string=
"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCABLAGQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKk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kVt4TJMrH548kHkY+7hs59xXMfEa/8/wAD7GkhaZblI5VhYsqnBIGSB2xUd3qEXhz+0tQGpy3NzKixPDLEDumKgpyoA+4Melc74kmRvhxBs0yXT/8ATwGSUks52OdxJA/yKaGjz6M/PXsV1Lf/AGOU6THG99HZ2KLvRGwpVy33+O4rxdX2tXX/APCdSyJGJNI0uV0jWPzJYN7EKMDOaYHoiX15baVcs9vDNqRsIUkjUIoMjylR93gEZB/CorSJhFEtzpzWlxbWjLjz/NVgzkEqVY/NuP8AFwPwribbx5e24YW+naVCHwWEdoq5wcjOPQ8irUXj7VFQokFiilSpCW4AIJJI+mST+NUrgdNOL+3ZYfkW8XTz5ImaI8GXjJPyk7R1q9o00v2rFyYzcLZZl8vZjJc/3eOgFca/jLUrgqX+zZUbV/0dTgegyKenirVRnbcKgP8AdhQf0p2YjttTkUWdyQScq34EJXGI2SBzSP4g1G4iaOW5LIwww2KMj8qitX3zxr6sB+tUlYlnWXcukpcuLyGJZTzl1BLD1op72VrdyPJcQF3BKguO3tjtRWSaEYf2K72wXUC+fItzLIolhaTyQH+8gGOeM4OScDFauozm70y3S7tbi7uZIpceUrW8zc42FOSEPGT06cc1l6bJLL4heB55zE8E2V81sdccc8fhU1oTN8Qby2kZniiiR41ZidrBVwQfxqUWiPXLPxLcWWItIstkkqPsQq8ihVAGWIHPHXr2rM8eC4uPC1leTpPaym52zWzOGQuVJ3Dk+mB7HtW5p+iaZNo1tcy2MMk0jNvd1yT85HeuZ8VRJB4RuIYlCRprUqqqjgABsChPUZ57nmno1RHrTlqwLcb1ajeqKVYQ00BoRye5q1HJWelWIzVJiNCOT3rQsXzdw9f9Yv8AOsmM8Vo6d/x+Qf74/nTb0Ea95Pr0V9cC0t2jhMjFduPm568+tFdTRWCqLsKx/9k=:195"
I want Convert it Into byte[]
if i convert it using
byte[] Barcode_ImageByte = Convert.FromBase64String(converted);
then it gives an error
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
If anybody Knows then Help Me About that
Reply
Answers (
2
)
Queries for WCF Service
I want to learn WCF Training from Best Online Institute?