Dynamic Image(s) in page using Base64 encoded string as image source

First of all, I'm not sure where to put this in the forum.  Second, Here's my problem.

I have access to a webservice that, based upon search params, will return a string array of base64 encoded images.  Now, the client application has to display those images.  Since the images come from a protected image server, I cannot use static paths or anything.  All I have to work with are the base64 encoded image strings that are returned from the service.  That's it!

I am having trouble figuring out how to display these in the page once when I get them.  The ASP.NET Image control only has an ImageUrl property, so it seems it cannot display an image from a memory stream for instance, just from a static URL.  I tried building an .aspx image generator, passing in the encoded string as a parameter and having that page build the image, but I don't think that will work because passing in the encoded string as a query param will most certainly violate maximum query string lengths.  Can anybody help me? Hmm

0
digitalmagik
10/31/2007 10:17:14 PM
asp.net.web-forms 93655 articles. 6 followers. Follow

0 Replies
900 Views

Similar Articles

[PageSpeed] 24

Reply:

Similar Artilces:

Encoding image to base64 string using javascript?
I need to encode an image to a base64 string on client side, does anyone has a script to do it? ThanksIf this post has been useful to you please mark it as answer. Take a look at this url, I think it contains the info you are looking for:  http://www.codeproject.com/useritems/Exsead1.asp  I tried that but couldn't manage to get it to work.If this post has been useful to you please mark it as answer....

Need suggestion to display image dynamically in the foreground of other image in web page
Hi,  I have a requirement in my project to display dynamically images. There is a big image displayed in the Web form and when we mouse over that big image then based on the position of the mouse different small images should be displayed in the foreground of the Big image. Can anybody give me a suggestion on how this can be done? Regards, Gayathri.    Hi Gayathri, This can be simply accomplished by using maps on an image like so <img src="images/shapes.jpg" width="375"height="102" style="border: none;" usemap="#shapes&q...

image not showing in image on web page
I have a dropdown list of 100+ images that reside on a server i put the full \\servedr\dir\dirsub\nam.gif in the imagerurl. but the image is now showing the images are not on my web server but a file server why wont they show. Hello my friend, The files need to be url locations like www.mysite.com/myimage.gif   Kind regards Scotty   I found my problem ( i have fat fingers) i forgot the the 2 '\\' in front of my path...

How can i use javasrcipt or xmlhttprequest to get the image outputed by an aps.net web page?
How can i use javasrcipt or xmlhttprequest to receive the image outputed by an aps.net web page? the webpage like this  protected void Page_Load(object sender, EventArgs e)    {        string strQueryFileName = Request.QueryString["filename"];         string strLocalPath = Server.MapPath(path);        Bitmap  theReturnImage = new Bitmap(strLocalPath);         theReturnImage.Save(ms, ImageFormat.Jpeg); &n...

Using images in a Web form
I have created a form that once a "Title" is selected from the dropdown box, click on select and the page is redirected to a "Results" page. The "results" page displays information pertaining to the "Title" as well as a photo or image. My dilema is that I am able to display the textual information, but can not display the image/photo. I have the images/photos stored in a folder and figure I need to call these images in my code somehow, but I do not have the slightest idea of how to do this. Can someone, anyone help? Thanks in advance. ---------...

Image references override? Source says images/pix.gif properties say dnndir/page/tabid/100/images/pix.gif
Here is the problemMy Custom Module reads an XML file which has HTML in it specifying the source of an image (src="images/pix.gif") When it shows up in the module it does not show up and looking at properties shows a full path (e.g. http://localhost/DNN/testpage/tabid/100/images/pix.gif) where it seems to be adding the local path to the beginning.  The Module is configurable so that the tabid will certainly change as well as the page.  I don't mind doing a transform on the XML file coming in but I can tell the folks who publish the original source what to put in place of src="...

!!!!! Image on master page wont show when image url is set to a image from content page !!!!!!
 Hi guys, I have this problem which i cannot seem to understand... here goes... i have a master page and an image control on it....it is a social networking website and then i have a content page..there is a link button on the master page when when clicked shows a modal popup which has a fileupload control and a user can submit an image file...when he does so the image get saved in a directory and also its complete address is saved in the database...now 2 problems... after committing these actions (on the master page code file ) i set the image url to the saved path ...

Make the image box on a web page the size of the image.
The thing I would like to figure out is how to tell the image box on an asp.net page to fit to the image and not the other way around. Currently when I have the imageurl load up a picture in the image box it resizes it to the box and distorts the image. I have found the code in the msdn: C#public Size Size { get; } but I don't understand it. Why is Size being used as the name and the data type. I am guessing I would have to acquire the size of the image being loaded and then change the image box to match the width and height dimensions. Unless there is an easier way to do this?&nbs...

Display image on page using full path of image
I am attempting to display an image in my Repeater control.  At run-time, I have only the full path of the image. (eg: c:\somedir\somedir\imagename.gif) The images are not located in the directory that the web application is running in. Is it possible to display the image?-Craig U-Sports.net - Taking Fantasy Football to School Yes you can. i.e.  "Repeater1" runat="server" DataSourceID="SqlDataSource1"> "Image" runat="server" ImageUrl="C:/myImage.gif" /> <%# Eval("fldTitle") %> ...

Magnify or Zoom a image or pieces of a image on the web page
Ok, my boss is wanting me to create something on our website that will allow people to zoom or magnify a image bigger for a better look. Also he wants them to be able to pick something on the image to zoom or magnify it. For a example. Let say they are looking at a picture of a book and want to make the pic bigger for a better look. Then lets say they want to only zoom in on the title of the book. How in world can this be done, I am at a complete loss on this. We are writing all the code using asp.net matrix. Thanks for any help Bill The only way I've seen this done is by u...

How to get HTML Source of web page opened by web browser using vb.net
hello friends,         i have opened an web browser in vb.net using the below code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim nullObject As System.Object = 0 Dim str As String = "" Dim nullObjStr As System.Object = str Windows.Forms.Cursor.Current = Cursors.WaitCursor Dim i As Int16 For i = 1 To 2 AxWebBrowser1.Navigate("http://www.google.co.in/search?hl=en&q=test&meta=", True) AxWebBrowser1.Document. Next Windows.Forms.Cursor.Current = Cursors.Default End Sub  ...

Imaging, but not imaging
We multicasted to 43 machines. Updated the image on the master. Multicasted the updated image to 36 machines. (the other 7 wouldn't join the session for some unknown reason). I visually verified that all 36 were imaging. One of the 8 which didn't rename appears to not even have been imaged. The problems with the previous image were still there. It's as though the machine didn't image even though I saw it take part in the session and the temp bar going across the screen. What the heck's going on here? AlaN As a try, what happens if you boot either to PXE ...

image and image
// create an image object, using the filename we just retrieved System.Drawing.Image image = System.Drawing.Image.FromFile(Server.MapPath(file)); // create the actual thumbnail imageSystem.Drawing.Image thumbnailImage = image.GetThumbnailImage(64, 64, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);   now my question is how to display this image in my image1 control in asp.net (version 1.1) the below line of code is not working.  Image1.ImageUrl=thumbnailImage.ToString();Mark As Answer If my reply helped you. Hi, you can save t...

Image in image
Hi, I have a project where clients viewing my website can buy t-shirts. They can choose from a number of t-shirt colors and shapes which are their plain colour. They can also choose a number of prints to be placed on the t-shirt. These will be graphics stored in a database. My problem is on how I can displaty the t-shirt with the graphics or logo they chose on te t-shirt. It would be something like drawing text on an image but instead drawing an existing image on the base image. Any Ideas? (I am using visual studio 2005 and vb.NET)   RegardsMerovingian you 1. You can create a...

Web resources about - Dynamic Image(s) in page using Base64 encoded string as image source - asp.net.web-forms

Dynamics - Wikipedia, the free encyclopedia
Brownian dynamics , the occurrence of Langevin dynamics in the motion of particles in solution (e.g. a grain in water, as was first seen by Brown); ...

Datacenter Dynamics
Datacenterdynamics for data center information, conferences, news, videos, whitepapers and reports globally

Dynamic Chiropractic - chiropractic, news, articles, research & information for chiropractors - Find ...
Dynamic Chiropractic - chiropractic, news, articles, research & information for chiropractors - Find a Chiropractor

Paul Melville: a dynamic talent taken before his time
What might have become of a popular young cricketer with the world at his feet?

Mea Culpa: Confidence Proceedings Edition: I Really Do Think Dynamic Scoring Is a Bad Idea
... *Brad DeLong noted that when he was a Treasury political appointee, one of the Treasury career staff economists lectured me him about dynamic ...

dynamic billboards to up your photo game
NYC is one of the most photographed places in the world, especially this time of year. And while Instagram has made every one of us feel like ...

SNL perfectly captured the dynamics of the Republican presidential race
The "Saturday Night Live" recap of the latest Republican presidential debate reflected fairly accurately the state of the GOP primary. Beck ...

CES 2016 TV tech: 4K yawns, high dynamic range dawns
... Show in Las Vegas this January, TVs with 4K resolution are old hat. So what's new hat? The next-generation TV technology known as high dynamic ...

Boston Dynamics wishes you a terrifyingly happy holiday
Whether you think holiday greeting cards are touching or annoying, Boston Dynamics is celebrating the season just a little differently with this ...

Microsoft Previews Dynamics CRM 2016 Roadmap
Customers can expect new licensing options, mobile marketing features and customer feedback capabilities in the coming months.

Resources last updated: 1/4/2016 11:28:16 PM