Local HTML using Content Image

I have an HTML string which, in my webview I am using NavigateToString to show.  I have several images in my project which are marked as content and copy local.  I was wondering how I can link to those images?  In my xaml they show up in the
Image object.
Any help would be great!,
Thanks!

Hi cwang733t,
Yes, it should like this, however I did not see your other codes, I don't know how you convert the image to base64 string, I found some sample online:
https://code.msdn.microsoft.com/windowsapps/Loading-Image-into-WebView-a3f68921
Take a look to see if this helps :)
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Storing content (image) to UNIX local disk using content repository (OAC0)

    Hello
    I want to setup a temporary content repository in oac0 to write to local disk (UNIX file system).  The program calls content repository V6 which I have set up.  The V6 content repository attempts store image.  We have no Content Server for this piece of testing work.  Not data archiving is required.  Only content (image) storing to local disk.  Is there a way to setup content repository to store content to local disk without the need for a web service?
    thanks
    dave

    Dear Dave,
    I think the best way for this scenario would be to define a data carrier in transaction DC20. For this data carrier you can for exmaple maintain a network path where the originals are stored.
    In CV01N or CV02N you can then add the original and just enter the data carrier and the filename. To access the file in the network path you must not check it in. Till the file is checked out the system will always try to access the file in its original directory without needing any content server.
    Best regards,
    Christoph

  • Using local HTML results in content generation error

    I'm trying to place local html that only deals with a column of text and an image in a box and make it scroll. When I place the html file with the Web Content Overlay directly in a frame and Preview on the Desktop Viewer, the frame scrolls perfectly, but won't import into the folio with the Folio Builder. "Content generation error, the folder is invalid for import." I also tried placing the html file in a frame as above, apply Web Content Overlay, and then Pasting Into a Content frame and then using the Scrolling frame Overlay. Works fine on the Desktop Viewer, but Builder won't import the article, same error as above. I could really use help with this! I can't find any instructions other than for YouTube embeds or full page html.

    Yes, but one of my clients uses HTML for many things, loves js and wants to provide content that way. I thought you could use any interactive overlay in a scrolling box. I'm also trying to embed a Google map in a scrolling box and not having much luck with that either!
    Sent from my iPad

  • How to save HTML file with images present in the server to local machine

    Hi all
    In my application i have a option for the user to save HTML files with images present in the server. The HTML file is getting saved but the images are not being saved.
    The code i am using is below :-
    l
                        File fname = new File(filePath);
                        if(!fname.exists())                return;
                        FileInputStream istr = null;
                        OutputStream ostr = null;
                        response.setContentType("application/"+format);
                        response.setHeader("Content-Disposition", "attachment; filename=\"" + fname.getName() + "\";");
                        try { 
                             istr = new FileInputStream(fname);
                             ostr = response.getOutputStream();
                             int curByte=-1;
                             while( (curByte=istr.read()) !=-1)
                                  ostr.write(curByte);
                             ostr.flush();
    Can anyone suggest what i need to do
    regards

    The client should probably parse the html that comes down, and look for <img> links, and request those of the server as well.

  • Unable to view local HTML content from "Help Content Only" SSL  iFrame

    Hi
    Can anyone confirm whether it is possible to view local HTML files within an iFrame when generating Help Content Only SSL content which is also locally deployed?
    I have had no problem viewing local html files from within an iFrame with a locally viewed Browser-Based Help project but despite trying a number of variations on the syntax, I simply cannot obtain the same result from a Help Content Only SSL that is then incorporated within a merged help system. I can however create hyperlinks to view local content using the following syntax (file:/C:\folderName\fileName.html - the only drawback for local preview is that you must right-click and select "open in new tab"). Essentially, I am trying to eliminate the requirement to have to right-click and open in new tab to view local html files.
    The project I am working on is deployed both locally and remotely and this whole process is necessary for emergency management and business continuity purposes.
    I hope my explanation isn't too convoluted and would be glad to clarify it further if required. I would appreciate any assistance!

    Hi John
    I appreciate you and Peter obtaining this  information from Adobe and I appreciate your continuing patience in  trying to understand what I am doing.
    I will start  from the beginning and hopefully clarify my process when deploying my  application locally (my remote process differs somewhat but is not  germane to this discussion). Obviously this will contain some repetition from previous posts but I hope it helps...
    The project itself integrates content created from Adobe RoboHelp with content created within Adobe Dreamweaver
    First, I should mention that I am using RoboHelp 8 as I don't believe I have addressed which version I am using. There's nothing particularly unusual about the project itself.
    Utilizing Dreamweaver I have created a self-contained HTML-only (no server-side functionality) website which is placed at the root level of the C: drive
    Within the RoboHelp project I create a hyperlink to access the local HTML files from the RoboHelp topic pages. The process I use to do so is from within the HTML view of the specific topic page and I use the following file path: "file:/C:\folderName\fileName.html". The only end-user requirement is that they must right-click and select "open in new tab", otherwise the link does not work. Please note, this is ONLY required for accessing the local HTML files.
    I output my RoboHelp project using the Adobe Air SSL, with the output type set to "Help Only Content" which creates the .rha files. I utilize multiple .rha files within my project as each .rha file constitutes a module specific to an individual municipality (in my particular instance)
    I use the Help Viewer Wizard from the RoboHelp "Toolbox" pod to create what I refer to as the "shell" .air file. Once the "shell" .air file created from the Help Viewer Wizard is  installed, it creates a shortcut on my desktop.
    I place an XML .helpcfg file within the directory on C:Program Files where my "shell" .air file has been installed to reference each .rha module which must be placed at the root level of the C: drive in order to be properly referenced by the .helpcfg file
    By double-clicking on the desktop shortcut created in Step 6 it opens the "shell" module which, in turn, loads in each individual .rha file which can be accessed individually from the drop-down menu in the top-right corner
    Why do I do it this way?? My organization severely restricts admin privileges on our workstations. We have one IT person / several hundred officers so I needed to create a system where the only time we need IT assistance is in the initial installation of the "shell" .air file created from the Help Viewer Wizard and placement of the .helpcfg file within the C: Programs folder. Once this is done, because the .rha files are on the C: drive, I can swap these out and update as necessary (we currently have an annual renewal cycle) and we require no further IT intervention. The local system I have just described has hyperlinks to the online browser-based help so that users can also access it and see any content updates made throughout the course of the school year
    Having said all that, based on the model I have just described, I have been trying to create iFrames from within my RoboHelp 8 topic pages (placed on my C: drive) to access the local HTML Dreamweaver site (also on my C: drive). The problem I have been having is that the resultant iFrames display only a blank white page and I have tried a number of variations on the syntax of the file path without success.
    The process I have been using to create the iFrame is as follows:
    In Design view, select Insert >> HTML >> iFrame
    In the iFrame dialog box, provide a name for the iFrame and then navigate to the local file on my C: drive level Dreamweaver HTML-only website that I want to link to.
    Click "Apply" and from the resulting dialog box states that "This action will create an external link to the help system... Do you want to continue?", I click "Yes"
    The resultant file path is "../../../../../folderName/fileName.html" which obviously won't work but I have created the iFrame and now I switch over to HTML view and insert the file path that I have been using for the hyperlinks ("file:/C:\folderName\fileName.html"). I also modify the width to 100% and the height to 1000 px
    The user is not being directed to a different domain. So, if as Adobe states, that iFrames are "supported in local AIR Help (.rha) as well" then I don't know why it will not work for me. Again, this is the file path that allows me to create a hyperlink which will access my local Dreamweaver HTML files: "file:/C:\folderName\fileName.html" so if that syntax works for a hyperlink, why will it not work for the iFrame?
    The videos I referenced are also contained within the local Dreamweaver HTML site
    My usage of the term "merged help" may have been unclear and hopefully steps 1-8 outline what I am doing
    Again, I am very grateful to all who have joined this discussion to try to help me! I think it should be manifestly evident by now that I am self-taught and basically that's the only excuse I can offer in my defense for my poor articulation. Not too many years ago I wanted nothing whatsoever to do with computers!

  • Image gallery in webcenter using content presenter template

    Hi,
    I created a content presenter template for image gallery in webcenter.
    The images from UCM are not displayed without log in to the webcenter application.
    I am getting a error like
    " Error calling UCM server associated with repository UCM.  The service GET_FILE was called with user anonymous at time 3/18/15 11:12 AM, and returned statuscode -1.
    oracle.stellent.ridc.protocol.ServiceException: Unable to download 'HSCSRV154.ALLE006130'. Access denied by records manager "
    Once i log in the images are displayed.
    What is the problem here?please help.
    I am using the latest webcenter extension in jdev 11.1.1.7
    Thanks,
    chandrasekar M

    Hi Vinod,
    I tried using af:image like below and its the same issue.I have read in most of the blogs that since this is in the content presenter template, the image has to be displayed using output text with escape set to false.
    <af:image source="#{node.propertyMap['REGDEF:Image'].asTextHtml}" id="image5"/>
    I am not using <img> anywhere, its just that on the webpage when the image doesnt appear, I tried to see the source of the image using Firebug and it shows following:
    <img src="${wcmUrl('rendition','xyz/web')} " alt = "Logo">
    Edited by: Swathi Patnam on Jul 13, 2012 6:00 PM

  • Link button to local html page using AS3

    I am using AS3 and having trouble linking a button to a local html page

    Okay, I tried both of the codes and it is still now working.
    navigateToURL(new URLRequest("file:///fishcom/Home.html"));
    I get a Windows dialog box that states that the path can not be found.
    navigateToURL(new URLRequest("./fishcom/Home.html"));
    This goes to http://./fishcom/Home.html  but not my page.
    The Flash file and the HTML page are in the fishcom folder on my desktop. Very frustrating because this was so easy in AS2. 

  • Known Issue: "DNS server could not be reached" when creating or updating a RemoteApp collection using template images for some locales

    When trying to create or update Azure RemoteApp collections that use a template image for some non-EN-US locales, it might fail with error "DNS server could not be reached". You might also see error code "DnsNotReachable". 

    Cause:  There was a issue in Azure in which decimal punctuation was not treated properly if the locale of the template image used a comma (,) instead of a period (.).
    Workaround:  Before a fix was applied, the workaround was to use template images based on a locale that uses a period to delimit decimals, such as EN-US.
    Resolution:  As of March 19, 2015, a fix for this issue has been applied to Azure. You should once again be able to create collections from template images that use non-EN-US locales. If you continue to have this problem, please
    try the workaround. If that works and the only difference in the template images is the locale, please email remoteappforum (at Microsoft). If the workaround does not work, the issue is likely caused by a DNS configuration issue such as:
    No valid forwarders to public DNS servers configured on your internal DNS server(s).
    A valid internal DNS server is not specified on your Azure RemoteApp VNet.
    A VNet or internal network configuration issue is preventing the internal DNS servers from be reached by the VMs in the RemoteApp collection.

  • Image not rendering when using Content Presenter Template

    I have checked in an image in UCM with security group as "Public" and in the content presenter template I have the following code to display image:
    <af:outputText value="#{node.propertyMap['TESTREGDEF:Image'].asTextHtml}" id="image5"
    escape="false"/>
    The image does not render on the page and it displays as a broken Image.I tried to print the value of the image URL and it is:
    <img src="${wcmUrl('rendition','xyz/web')} " alt = "Logo">
    Am I doing anything wrong?
    Thanks,
    Swathi Patnam
    Edited by: Swathi Patnam on Jul 12, 2012 5:24 PM

    Hi Vinod,
    I tried using af:image like below and its the same issue.I have read in most of the blogs that since this is in the content presenter template, the image has to be displayed using output text with escape set to false.
    <af:image source="#{node.propertyMap['REGDEF:Image'].asTextHtml}" id="image5"/>
    I am not using <img> anywhere, its just that on the webpage when the image doesnt appear, I tried to see the source of the image using Firebug and it shows following:
    <img src="${wcmUrl('rendition','xyz/web')} " alt = "Logo">
    Edited by: Swathi Patnam on Jul 13, 2012 6:00 PM

  • Store images to local disk without content server

    Hello
    I want to setup a content repository to store content (images & docs) to file system.  I had a look in transaction oac0 and tried testing a few configurations but no luck.  This is only for a temporary\interim solution.  Is there a way to set this up without a Content Server being installed?
    Is this supported?
    Regards,
    Dave

    Dear Dave,
    I think the best way for this scenario would be to define a data carrier in transaction DC20. For this data carrier you can for exmaple maintain a network path where the originals are stored.
    In CV01N or CV02N you can then add the original and just enter the data carrier and the filename. To access the file in the network path you must not check it in. Till the file is checked out the system will always try to access the file in its original directory without needing any content server.
    Best regards,
    Christoph

  • How to display local HTML file in web-view?

    Hello everyone,
    we have no problem with showing of remote HTML content from server in box on page in web view. But how we can show such a content when included in HTMLResources? In guide is just "Display a local HTML file in an in-app browser", which works wihout problem, but we don't want to show this HTML content in in-app viewer, it should be part of page.
    Thanks
    Martin

    Now i'm confused. In guide is this:
    To use local HTML files, click the folder icon and specify the local HTML file. The HTML file (such as index.html) should appear in a folder that includes any images or scripts used in the HTML file.
    But no info where such a local HTML file should reside. If this file is in HTMLResources, it is ignored.

  • Send local html files to Browser

    I have a Servlet program which can send any HTML files located on the computer which Tomcat is running to client browser. The HTML files are not necessarily in Tomcat's "webapps" folder. My method is quite simple. Read the content of the local HTML file and write it out through HttpServletResponse object. But there is problem that if the HTML file includes images, the images don't appear in client browser. Is there a way to send those images to client browse as well? Thanks in advance.

    Well, this is just an idea, but:
    You would probably have to create a new Servlet, that will identify the image type, set the correct content type (response.setContentType("image/gif") for example). It would have to get a binary InputStream to the image and copy the input to the output stream in the response(use the getOutputStream and not getWriter...)
    In your HTML writing servlet you would have to scan each line for an <img ... > tag parse out the source and replace it with the image servlet.
    Locating the image may be problematic if it is not given in absolute "file://" url. You may need to scan for a <base> tag in the HTML as well, or use the HTML page's directory for the path in which to find the image... but it could come in more complicated then that depending on how complicated the HTML was written (ie, for a server with multiple hosts, or with aliased paths...)
    Or, you might be able to write a filter that looks for images(*.gif *.jpg) and sends the request to your image servlet....

  • Using .png images in a website?

    Being new'ish to Fireworks and the .png format I am really amazed at the quality of png's in a webpage and how the hold their quality. In web design I tend to like placing text over images and this can often have quality issues as text tends not to work to well with a jpeg unless you increase the resolution before hand.
    I have found that while I edit an image in FW and place text over an image if I then save as a jpeg the image may not be as clear as I would like, if I keep it as a .png the quality is perfect.
    I know why this is but on doing some research have found that .png's are still not universally used across may web browsers and as a result it is advised not to use them.
    Some forums say they are fine while others say the opposite in using 'png's in web design, does anyone have any thoughts on this?
    I want to use .png's in my web design instead of jpegs but am undecided from what I read on the Internet so would appreciate any thoughts you may have regarding this.
    Many thanks, Pete.

    On PNG images:
    When you "save" from Fireworks, the file contains extra information in the file header which is proprietary to FW. The file will be viewable in a browser, as browsers just ignore the extra information, but the file is larger than is needed for a Web page. To create a .png file for a browser, you want to "export." (I like using the Image Preview function, myself.) There is no difference in the file extension between a fully-editable FW document .png and a flattened exported .png. In a thread some time ago, a poster commented that he gave his Fireworks documents a .fw.png extension, and exported to the plain .png. I've tried to adopt that approach and I find it helps me keep better track of what's what in my folders. It's up to me to remember to do it, though.
    Exported PNG images can be 32-bit, 24-bit or 8-bit. Here's the difference:
    A 32-bit PNG will represent your FW document with transparency. All the objects will be flattened, of course, but transparent and partially transparent areas will be preserved. The file is 32-bit as you have 8-bits each for red, green, blue, and transparency. Eight bits of data gives you 256 values. (Note: Photoshop calls this a version of the format a 24-bit PNG with transparency.)
    A 24-bit PNG does not have transparency. The 24 bits of data are 8-bits (256 values) for red, green, and blue. In this sense, it is similar to a JPEG, although you do not have the data loss or the color shifts.
    An 8-bit PNG has 256 colors in a list. In a way, this is similar to a GIF image. The interesting thing about PNG8, however, is that colors in PNG8 in Fireworks can be semi-transparent. In a GIF, you have the option of selecting only one color to be fully transparent.
    Using PNG images on the Web
    You will want to export to PNG32, PNG24, or PNG8, as appropriate for your needs. Do not overwrite your Fireworks document! If you use Image Preview when exporting slices, and select a .png format, then that setting will be set for that slice. You can't select .png from the Property Inspector.
    If you need to support Internet Explorer 6, you can use PNG24 with no problem. IE6 will render any semi-transparent areas of PNG32 or PNG8 images as fully transparent. To support PNG32 in your Web pages on IE6, you need to add special code. Even then, however, your visitors' browsers can lock up under circumstances that are not fully understood (http://blogs.cozi.com/tech/2008/03/transparent-pngs-can-deadlock-ie6.html). If you know your visitors won't be using IE6, or the content in the transparent PNGs is purely decorative, then maybe that's not an issue for you.
    Here's a roundup of techniques for using transparent PNGs at Smashing Magazine:
    http://www.smashingmagazine.com/2008/04/16/getting-creative-with-transparency-in-web-desig n/
    File Size
    Choose the best file type for the image you have. No one file type is always better. If you need to support IE6 still, and you can think of how to do your site without transparent PNGs, then the coding will be easier and the cross-browser compatibility will be better. If you use Image Preview (under the File menu item), you can change the quality level for JPEGs. The default level is 80%, which may not be a high enough quality level for a particular image. Higher quality means larger image size, but for photographic elements, a JPEG may still be smaller than a PNG for a given visual quality. It depends on the image content; each image is different.
    Gradients and Banding
    Fireworks creates strict numerical interpolations between the two colors you use for your gradients. If the colors are close together, you may not have enough intermediate colors to span the distance you want to cover and you will get bands. Photoshop produces what appear to be smoother gradients, because that application adds subtle noise into the gradient to prevent banding.
    Indexed Palettes
    If your image contains more than 256 colors and you select an image format with an indexed palette (GIF or PNG8), you may find that Fireworks produces a palette with fewer than 256 colors. This is a known "feature" of the program and there's no known workaround. If you decide to produce transparent PNG8 images, you need to be aware that this can happen.
    And...that's all I can think of that touches on your issues.

  • Spotlight doesn't find search results in .HTML file contents

    When I use Spotlight to search, it doesn't find any .HTML file contents. If I rename an .HTML file to use a .TXT extension, the contents are found. Is there a way to enable Spotlight to find contents in .HTML files?

    I remembered that used to be problem, so I just checked on my local version of my site, and Spotlight found the files on the basis of content without a problem. So I took a look at my installed mdimporters in /Library/Spotlight, to see what may have led to this happy turn of events. I thought perhaps the iWeb mdimporter might be doing it, but was unable to find a reference to HTML in its type declarations. I then took a look at in /System/Library/Spotlight and discovered that RichText.mdimporter has a declaration for public.html as a content type. You should have that mdimporter installed by default, but you might take a look to make sure it is there.
    If the mdimporter is there, but the html files aren't being indexed, it could be that whatever program you are using to create them isn't giving them the appropriate content type. I code by hand using TextEdit, which saves them with the following metadata entry:
    kMDItemContentType = "public.html"
    kMDItemContentTypeTree = (
    "public.html",
    "public.text",
    "public.data",
    "public.item",
    "public.content"
    They are then evidently indexed without problem by the RichText.mdimporter. You might try opening one of your html docs in TextEdit (as plain text), resave, and see if Spotlight then picks up the content of the file. Of course, the content means the words that people see when they look at the page in a browser. If the content you are talking about is stuff that is inside an html tag, you are out of luck. I know of NO way to get Spotlight to find that. EasyFind will though, but it is a brute force search and will take awhile, even when restricted to a particular folder.
    Francine
    Francine
    Schwieder

  • How to display html tags content in flex

    hi all,
    It would be great if any one can lead me to a tutorial of
    integrating html tags content in flex. Actulay i have to insert and
    series to table in flex
    thanks

    The Flash Player has a very limited number of HTML tags it
    can handle - table is not one of them. Since Flex is just a way to
    build Flash Player content you are limited by what the Flash Player
    can do.
    We don't supply a full browser/HTML rendering engine in the
    Flash Player because it would make the Flash Player a
    multi-megabyte download (eg, 11-12 MBytes); right now the Player
    has a small footprint which enables it to be downloaded by
    virtually everyone.
    The Adobe AIR player (see labs.adobe.com) does have a full
    HTML component and can run Flex programs. The caveat is that the
    apps are not run in the browser, but on the local machine. The
    end-user has to download the AIR player in order to use it.
    You can also check out Alex's blog (
    http://blogs.adobe.com/aharui/)
    and scroll down to "HTML and Flex"

Maybe you are looking for

  • How can a parent restrict a child's access to a PARENT'S PRE-EXSISTING iTunes account via iCloud's Family Sharing Program?

    How can a parent restrict a child's access to a PARENT'S PRE-EXSISTING iTunes account via iCloud's Family Sharing Program?  To explain further... I have a young son who is on my iCloud family sharing program... I am excited to be able to share SOME o

  • Complicated problem: Laggy Macbook Pro, now not booting

    I am facing a very complicated issue with my unibody Early 2011 15" Macbook Pro (2.2 ghz core i7, 4gb 1333mhz ram, amd radeon 6750m, if you need hardware details). I guess the issue started after my computer started to get laggy for no reason at all:

  • How can I store and view a pdf file ?

    I have an iphone 3GS 32Gb and want to store a pdf file on my phone so that I can view it later. Email is the only way I have been able to view my pdf file, but I dont really want to do it this way. On previous phones I could save a file on the phones

  • Music player turning on automatically

    At random, when I swipe up to access Control Center, it says my music player is on and playing a random song. Even though I havent opened my music app. Anyone else know whats going on??

  • Savepoint not supported with oracle 8i

    when I am using the oracle thin driver I'm getting the following error Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.supportsSavepoints()Z at Svpt1.main(Svpt1.java:31) but when odbc driver is used