Display a decodec image on website

I use this code to decode the image:
byte[] todecode_byte = Convert.FromBase64String(img);

If I do it on the same page I'm on it look's like this:
GIF87ax ¿¿¿¿¿¿  

but if I open it on a other page it display's a picture

How can I make him display on the same page?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mr_EziAuthor Commented:
This is how I call it from another page:

<img src="Ups.aspx" alt="UPS Label" "height: 397px; width: 725px"
            style="height: 484px; width: 965px"/>
What do you mean by "If I do it on the same page I'm on it look's like this:" ?

Are you trying to stream an image directly into a html page?
Mr_EziAuthor Commented:
I get a string from ups website and I want to display it on the same page where the code to retrieve this image string is on.
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Mr_EziAuthor Commented:
Any help maybe?
Mr Ezi,
I'm not sure what you mean by these two seperate scenarios..

"If I do it on the same page I'm on it look's like this:"

"but if I open it on a other page it display's a picture"

Absolutely no offense intended, but your English is a little confusing.  I dont see a different in opening on this page, and opening on another page.  Could you post the exact code used in all your methods, and indicate which one is not working?  If you could post a link for me to look at the broken page that would be great too.

Mr_EziAuthor Commented:
Dear Mr. Tony...
Thanks for trying to help me, and sorry for my English… after all English is not my mother’s language…, but I'll try to explain the problem the best I can, hopefully you'll be able to find a good solution, I already spent a few hours to figure this out but with little success.
OK the story is as follows, I made a web application to get shipping labels from ups, after all the code to get the label, I get from ups the label image decoded in a base64char format, till here it all runs smoothly…
Now the problem is how to decode and display this image for the end user to print it?  
I have one solution but it’s very complicated and that is to send over the decoded image to a new webpage within my application, and then I have to make a 3’rd webpage and in the html of this form I put this code <img src="Ups.aspx" alt="UPS Label"/>  it works, but I know it’s not the right way to do it…
Any idea how to make better?

Thank a lot

That's quite alright, and I dont mean to criticise your English, it's very good, just a little hard to understand for me :)

It sounds to me like the ideal situation for you would be to have a ups.aspx, and then you could call the ups.aspx page from your main page.  Can I just check that you have structured your pages as such...

PAGE 1: - SomePage.aspx

<img src="/Ups.aspx?someid=id"/>

PAGE 2: - Ups.aspx
set content type

If you have, can I see the full code from your ups.aspx page please?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mr_EziAuthor Commented:
Sorry I was busy with some other stuff I didn't have time to finish this form.

I could send you the files but its hard to put here, is there a email were I can send it to you directly?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.