locked
Large Logo not displayed After Child Application Registration RRS feed

  • Question

  • I am working on Health Vault integration with our portal in Java. When I tried to create a Child Application using Health Vault java Library and partially succeeded.  The issue that i am facing is I am not able to see Large Logo that i provided during Child Application Registration.  Following is code snippet that I used to Add Logo:
    -----------------------------------------------------------------
    AppLargeLogoInfo largeLogo = info.addNewLargeLogo();
    largeLogo.setContentType("jpg");
                   
     largeLogo.setLogo(org.apache.commons.codec.binary.Base64.encodeBase64(logo)); 
    ------------------------------------------------------------

    Child Application registers successfully but Large logo does not show up...  Am I doing some thing wrong.

    Thanks,
    dk
    Thursday, April 30, 2009 9:20 PM

Answers

All replies

  • How long did you wait after updating the application configuration before checking for the new logo?  Are the other changes showing up too?

    Just checking to see if this is a cache server delay issue.  Our cache servers currently introduce a 30 minute (sometimes up to 60) delay in configuration changes taking effect.  We're working on improving that, but that's the current behavior.

    If that's not the case, we'll take a look further.
    Thursday, April 30, 2009 9:43 PM
  • This I tried yesterday and today. Other Change is Visible except Large Logo. I changed the application name and it worked fine.
    The Logo  file name is: logo.jpg  and size of the file is 2 KB .
    Thursday, April 30, 2009 9:54 PM
  • Did you make sure that it is not the browser that is caching it?  Worth a try after clearing the browser cache... 

    Raj


    Raj HealthVault Developer Tool http://xray.getrealconsulting.com
    Friday, May 1, 2009 1:38 PM
  • I cleared the browser cache too. Still no luck . I tried with IE 7.0 and Fire Fox 3.0.10 browsers. In IE7.0 instead of Logo I see a rectangular box with a rex cross mark and Name of Application that I created.
    Friday, May 1, 2009 2:07 PM
  • Ok, It mostly looks like that your image file you got corrupted when it got updated to HealthVault.   Firefox generally ignores invalid images and doesnt show anything - but IE shows the red box...

    I am not very familiar with the Java interface. Can you cross check that you are not corrupting the file in any way? like - ending up base64 encodeing twice before submitting.. For ex, if the largeLogo.setLogo function itself is encoding again..

    Can you also share the child application id (Just to see if I can get the image and trace it in Fiddler for the image and see what i get)?

    Raj


    Raj HealthVault Developer Tool http://xray.getrealconsulting.com
    Friday, May 1, 2009 2:53 PM
  • I checked in my code . base64 encoding is happening only once.  

    The child App id that i am using is:  d6d281ad-cd8e-4442-b894-ceeb698ae250

    Thanks,
    dk
    Friday, May 1, 2009 3:35 PM
  • I traced the request using Fiddler.

    The image request from platform https://account.healthvault-ppe.com/appimage.aspx?appid=d6d281ad-cd8e-4442-b894-ceeb698ae250 is definetly returning a base64encoded string and not image biinary data... The total size of response is 1883 bytes

    To be doubley sure, I also base64 decoded the response again and I did get the logo's binary data which I saved as an image and could view that in mspaint...

    So it is guaranteed that the problem you are seeing is due to the fact that your image is getting base64 encoded twice.

    Hope this helps

    Raj


    Raj HealthVault Developer Tool http://xray.getrealconsulting.com
    Friday, May 1, 2009 3:47 PM
  • Thanks for the expalination.  I corrected the issue with double encoding and tried again but got the same result.

    I was able to Base64 decode the Large logo data that was passed in the request and get the image back. But I still do not see the image in Health Vault. 
    For the caching issue I cleared the cache and waited for one hour for the image to show up but no luck.

    Thanks,
    dk

    Friday, May 1, 2009 7:54 PM
  • I checked it again and it still returns base64 encoded string instead of binary data.. Did you create a new application id or updated the existing one? 

    Raj


    Raj HealthVault Developer Tool http://xray.getrealconsulting.com
    Saturday, May 2, 2009 4:27 AM
  • I updated the existing one.   Here is the request Data for Large Logo :


    <large-logo>
    <logo>R0lGODlhkQCJAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD//////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBmAABmMwBmZgBmmQBmzABm/wCZAACZMwCZZ
    gCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNmZjNmmTNmzDNm/zOZ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