Get photo from archive link and link into WDA Image UI

Hi guys,
I have employee photos stored in archive link under PREL HRICOLFOTO object.
The question is: how can I get the image and link it on an image UI element on WDA?
I have read some posts but, to be honest, I don't understand very well.
I'm trying use ARCHIV_GET_CONNECTIONS function module to obtain ARC_DOC_ID field, but I don't know which is the following step.
Can anyone help me?
Thank you.

More info about the issue...
In fact, I can see the temporary file created on ICM cache, but when I try to open the file is not appearing the photo, it is appearing the string. I put my source code:
<pre>
<code>
<B>* Get ARC_DOC_ID string from archive link for the employee 10002 </B>
  CALL FUNCTION 'ARCHIV_GET_CONNECTIONS'
   EXPORTING
     objecttype               = 'PREL'
     object_id                = '10002'
     until_ar_date            = sy-datum
   TABLES
     connections              = lt_connections
  PARAMETER                =
   EXCEPTIONS
     nothing_found            = 1
     OTHERS                   = 2.
  DATA: gx_mimetype TYPE string VALUE 'image/jpeg'.
  DATA: l_image TYPE xstring.
  DATA: converter TYPE REF TO cl_abap_conv_out_ce.
****Create the cached response object that we will insert our content into
  DATA: cached_response TYPE REF TO if_http_response.
  CREATE OBJECT cached_response
    TYPE
      cl_http_response
    EXPORTING
      add_c_msg        = 1.
  TRY. " ignore, if compression can not be switched on
      CALL METHOD cached_response->set_compression
        EXPORTING
          OPTIONS = cached_response->co_compress_based_on_mime_type
        EXCEPTIONS
          OTHERS  = 1.
    CATCH cx_root.
  ENDTRY.
****set the data and the headers
  DATA: l_app_type TYPE string.
  DATA: l_xstring TYPE xstring,
        i_cache_timeout  TYPE i VALUE '60'.
  READ TABLE lt_connections INTO ls_connections INDEX 1.
<B>* On this part I try to convert STRING (ARC_DOC_ID) into XSTRING, I don't know if it is correct or not!!!!</B>
*-- Convert
  converter = cl_abap_conv_out_ce=>create( encoding = 'DEFAULT' ).
  converter->reset( ).
  CALL METHOD converter->write
    EXPORTING
      data = ls_connections-arc_doc_id.
<B>* Store on l_image xstring converted!!!!!!</B>
  l_image = converter->get_buffer( ).
  cached_response->set_data( l_image ).
  l_app_type = gx_mimetype.
  cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                     value = l_app_type ).
****Set the Response Status
  cached_response->set_status( code = 200 reason = 'OK' ).
****Set the Cache Timeout - 60 seconds - we only need this in the cache
****long enough to build the page and allow the Image on the Client to request it.
  cached_response->server_cache_expire_rel( expires_rel = i_cache_timeout ).
  DATA: r_url TYPE string.
  DATA: i_path TYPE string VALUE '/sap/public/bc/webdynpro',
        i_format TYPE string VALUE 'JPG'.
****Create a unique URL for the object
  DATA: guid TYPE guid_32.
  CALL FUNCTION 'GUID_CREATE'
    IMPORTING
      ev_guid_32 = guid.
  CONCATENATE i_path '/' guid '.' i_format INTO r_url.
****Cache the URL
  cl_http_server=>server_cache_upload( url      = r_url
                                       response = cached_response ).
  " bind the generated url with the image uielement attribute
  DATA lo_el_context TYPE REF TO if_wd_context_element.
  DATA ls_context TYPE wd_this->element_context.
  DATA lv_url LIKE ls_context-foto.
get element via lead selection
  lo_el_context = wd_context->get_element(  ).
set single attribute
  lo_el_context->set_attribute(
    EXPORTING
      name =  `FOTO`
      value = r_url ).</code></pre>
Thank you
Edited by: vanbelal on Apr 22, 2010 9:39 AM

Similar Messages

  • How to get photos from camera or memory card into new macbook?

    how to get photos from camera or memory card into newly announced macbook?  thank you   joanlvh

    And to diversify the use of that port, you could get this specialized adapter:
    http://store.apple.com/us/product/MJ1K2AM/A/usb-c-digital-av-multiport-adapter
    The cost of admission is modest - at $79 - for what all that it does.

  • Getting data from some source and insert into corresponding source

    hi all,
    i am using db10g.
    i have like like
    MMA : add1:add2:add3'the above said is the format and actual data will be something like
    MMA : bank street : no:32 : tel: +9127546663
    add1 = bank street
    add2 = no:32
    add3 = tel: +9127546663 my requirement to store add1,add2 and add3 into the table.
    So to take the data i am using substring and instring function to get the data with respect to : my problem is for example in add2 place no:32 is there my task is to fetch the no:32 from that line and store into the table as no:32 only in that case i cannot fetch the value in terms of :.
    sincr : is the delimiter(seperator for data element)
    how can i solve this issue?
    Thanks..
    Edited by: user13329002 on Jan 1, 2011 11:37 PM

    Your first addr1 is terminated by (:).
    your second addr2 is started with (no:), and also terminated by (:)
    and third addr3 is started with (tel:).
    only the first and third (:) will be used as delimiter, so how about this?
    WITH T AS (SELECT 'bank street:no:32:tel:+9127546663' AS STR FROM DUAL)
    SELECT SUBSTR(STR, 1, INSTR(STR, ':', 1, 1)-1) AS ADD1,
    SUBSTR(STR, INSTR(STR, ':', 1, 1)+1, INSTR(STR, ':', 1, 3)-INSTR(STR, ':', 1, 1)-1) AS ADD2,
    substr(str, instr(str, ':', -1, 2)+1) as add3 from t;
    bank street       no:32     tel:+9127546663Or can`t you just ask the people who gave the requirement to change the delimiter used in the format to something else like pipe (|)?

  • HT4906 how can I get photos from my iPad and iPhone onto my IMac desk top with ICloud ?

    How do I turn on ICloud on my desktop imac 27 inch so photos from my ipad and iphone go to it

    Here's some additional information that should help:
    iCloud: System requirements
    iCloud: My Photo Stream FAQ
    OT

  • My iPad is ios8 and my iPhone is ios7. I want to get photos from my iPhone into the photostream. Can I?

    How can I get photos taken with my ios7 iPhone into my iCloud photostream which is ios8?

    If you look at the link that Old Toad posted and scroll down to the section "Minimum system requirements by feature", you'll see, that you can use iCloud to transfer your photos from iOS 7 devices:
    To use iCloud, you need at least iOS 5 on iPhone 3GS, iPod touch (3rd generation), iPad, or iPad mini; or at least OS X Lion v10.7.5 on a Mac.
    iCloud Photo Sharing works with iOS7, see: iCloud: Using and troubleshooting Shared Photo Streams

  • How to get photos from txt msgs into gallery, and to my home pc

    I have no problem getting photos from Gallery into my home PC (Windows 7) using the USB cord.  I cannot figure out how to save a photo which has been sent to me via txt msg.  tried the bottom left menu, and nothing there to help.

    Try doing a long press directly over photo, see if it brings up a menu of options to do to the attachment/photo. One should be  "Save to storage" or something like that.

  • HT201317 Photos from my iphone and ipad are going into my photo stream on the devices but aren't going into the folder on my windows PC. They used to but they suddenly stopped. Has anyone else had this same problem?. I have checked all settings and they a

    Photos from my iphone and ipad are going into my photo stream on the devices but aren't going into the folder on my windows PC. They used to but they suddenly stopped. Has anyone else had this same problem?. I have checked all settings and they appear OK

    Hi AP_In_Surbiton,
    I am really sorry that you have had so much trouble getting your Caller ID up and going.  I'll be happy to help you out with this and get it working for you.
    Could you drop me in an email please? Use the 'contact us' form in my forum profile under the 'about me' section. You can find it by clicking on my username.
    Thx
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Bridge 'get photos from camera' stopped working and Bridge won't recognize my DNG files anymore

    So, I've got Bridge set up to get pictures from mem.card whenever I insert one in my laptop (win. 8.1). A week ago I installed Sony's PlayMemories. Without asking me it hijacked Bridge's task of getting pictures from my cards. What's worse, I tried to fire the 'get photos from camera' function manually from Bridge. Bridge starts working, but nothing happens. I uninstalled PlayMemories and reset Bridge, also told my laptop to run Bridge whenever I insert a card. Still nothing happens and I still can't get the 'get photos' function to run manually from Bridge. Anyway, I can still rund the DNG converter to get my pictures, but today Bridge won't recognize my DNG files - worked fine yesterday. I downloaded CS6 from this link https://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html  and tried to run the installer, but it doesn't seem to do anything. Maybe I need to do a full uninstall off CS6 for it to do anything..?  Anyway, if any of you guys could help me with my Bridge/CS6 issues I'd be grateful.  I've got 3 sets of concert photos and a snowboard comp. shoot I need to finish this week 
    CS6 running on windows 8.1

    Re-install of PS CS6 resulted in the following errors:
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 3 error(s), 1 warning(s)
    ----------- Payload: {CFA46C39-C539-4BE9-9364-495003C714AD} Adobe SwitchBoard 2.0 2.0.0.0 -----------
    WARNING: DF029: ARKServiceControl::StartService: Service not started/stopped SwitchBoard. Current State: 0 Exit Code: 0 Service Specific Exit Code: 0(Seq 1)
    ----------- Payload: {C41A769E-27ED-44F7-8A11-F2E32F538E05} Adobe Linguistics CS6 x64 6.0.0.0 -----------
    ERROR: DF024: Unable to move file at "C:\Program Files (x86)\Common Files\Adobe\Installers\adobeTemp\{C41A769E-27ED-44F7-8A11-F2E32F538E05}\_249_92e651345849 4a10e8de711f4c5be8e5" to "C:\Program Files\Common Files\Adobe\Linguistics\6.0\Providers\Proximity\11.00\araphon.env" Error 1392 The file or directory is corrupted and unreadable.(Seq 251)
    ERROR: DW063: Command ARKMoveFileCommand failed.(Seq 251)
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050: - Adobe Linguistics CS6 x64: Install failed
    This doesn't really tell me much, anybody else got a clue what this is...?

  • HT4910 How do i get photos from my Camera Roll into my Photo Stream?

    How do i get photos from my Camera Roll into my Photo Stream? It seems it is supposed to do it automatically , but it does not.

    Photos are normally uploaded automatically as long as you are connected to wifi, have the camera app closed and have at least 20% battery life remaining.  (It doesn't require a manual iCloud backup first.)
    If yours are working, if you haven't already done so, try turning off photo stream, then turn it back on.
    Sometimes people have issues getting photo stream to work on their home wifi, even if other devices in the home seem to work fine.  To troubleshoot this as a possible cause, some things to try include:
    Power-cycling your router (unplug for 15 seconds, then plug back in), then go to Settings>General>Reset and tap Reset Network Settings, then rejoin your wifi network.
    See if there is a firmware update available for your router.
    Change the DNS settings in your router to Google's Public DNS (see https://developers.google.com/speed/public-dns/docs/using)
    As a diagnostic step, go to a public wifi hotspot and take a photo, then wait a minute or so to see if it appears in your My Photo Stream album on your phone.  If it does, this confirms that the problem is with your home wifi.

  • How can you take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in.

    As the title says I need help on how to take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in. Right now when I want to move a picture from one event to another I drag it to my desktop then delete it from iPhoto then I drag it back into iPhoto and put where I want it.An example would be taking a photo from the Christmas event and add it to a specific person event.  Can I do that within the events section without all the dragging. Also is there anyway I can remove duplicates from iPhoto without going through each and every file. Any help would be greatly appreciated.

    Apple doesn't make it easy to do what you want.  However, here's how I do it. 
    Select the photo you want to move and create a new Event for it via the Event ➙ Create Event menu option.
    In the Event mode select the new Event with the one picture and drag it onto the Event you want to move the photo to.

  • I have uploaded photos from the past and they are grouped by dates.  How do I seperate those photos into their own folder/album so that I can easily identify the contents.  Also, what is the difference between Album, Smart Album and folders?

    I have uploaded photos from the past and they are automatically arranged by date.  As a result, there are many events grouped into one library/event/folder/album (not sure of the proper terminology) I'd like to separate them into folders/albums/smart albums so that I can easily identify the contents.  How do I do that and do I delete the originals?

    It would be good to take the tutorials and learn iPhoto - these are for the previous version but the concepts are the same and much of the command is the same - and it would be a worthwhile investment of time to take the iphoto tutorials - http://www.apple.com/findouthow/photos/ - they are very helpful and will save you a lot of time and frustration. - also the tutorials in iPhoto Help will be helpful - while iPhoto is easy and intuitive it does have a learning curve and it will save you time and pain if you spend a few minutes learning the basics
    as to organization - events are generally time based and are the basic automatic organization - you can merge and split them to make them work better for you but they are not a good way to do detailed organization - best to leave them time based
    albums are logical things that contain photos and are just pointers to the photo in the event so they take no extra space and all changes to a photo anywhere are reflected everywhere
    Smart albums are the same except they are automatically filled based on the criteria you set when you create them
    Folders are containers that you create and a folder can contain albums, smart albums or other folders so they are a big help in organization - like a vacation folder that holds folders for France, USA, China with each of thos folders holding albums of photos from the country
    LN

  • My iPhone was stolen last night and I'm trying to recover all my photos from that phone and get them on my mac laptop. The iCloud photo stream only imported 1,000 photos from my stolen phone. How can I retrieve all of my other photos?

    my iPhone was stolen last night and I'm trying to recover all my photos from that phone and get them on my mac laptop. The iCloud photo stream only imported 1,000 photos from my stolen phone. How can I retrieve all of my other photos?

    You have to reset the device to Factory Settings in order to restore it from an iCloud backup. You probably want to back it up as is before you do this.
    To do the reset after you have backed up the current device, go to Settings>Reset>Reset all Content & Settings. This will erase the device. If you are signed onto iCloud with Find My iPhone turned on, go to Settings>iCloud and scroll to the bottom to sign out of iCloud before you do the reset.
    Once you have reset your device, you will set it up like a new phone. When it asks if you want to restore it from an iCloud backup, select the backup you want to restore it from.
    Cheers,
    GB

  • HT201302 Hi People! please help...I want to know how can i get photos from ipad to the computer, that were synchronized previously to ipad but from another pc that i dont have access anymore and these pics are now only found in this ipad and no other plac

    Hi People!
    Please help...I want to know how can i get photos from ipad to the computer, that were synchronized previously to ipad but from another pc that i dont have access anymore and these pics are now only found in this ipad and no other place.

    Hi Alan,
    Thanks for the help, but i've actually done that before.
    It does not help, because it only shows the photos on the camera roll and do not show the photos synchronized with that pc that i dont have access anymore.
    The photos/albums all appear on the ipad, i can see it without problems but i cant get them out of the ipad to save onto pc for backup.
    And i reaaly need it, as it is the only place that i actually have these photos now...

  • I just bought lightroom 5. I had lightroom 3. Now when I export my photos from lightroom 5 and upload them into my photoshop elements program to edit the photo files are at 100% zoom percentage. When I upload photos from my old lightroom 3 program they co

    I just bought lightroom 5. I had lightroom 3. Now when I export my photos from lightroom 5 and upload them into my photoshop elements program to edit the photo files are at 100% zoom percentage. When I upload photos from my old lightroom 3 program they come into photoshop at 14% zoom percentage which is what I want them to come in at so I can zoom them in to detail the skin. What might have changed settings wise between the 2 programs, I cannot figure it out.

    I just bought lightroom 5. I had lightroom 3. Now when I export my photos from lightroom 5 and upload them into my photoshop elements program to edit the photo files are at 100% zoom percentage. When I upload photos from my old lightroom 3 program they come into photoshop at 14% zoom percentage which is what I want them to come in at so I can zoom them in to detail the skin. What might have changed settings wise between the 2 programs, I cannot figure it out.

  • I can't sync photos from my PC and get (-50) error

    I can't sync photos from my PC and get (-50) error

    Hello evilemma72,
    Thanks for using Apple Support Communities.
    If you do not see a checkbox to enable syncing photos, and instead see a message the iCloud Photos is on, then it indicates you have iCloud Photo Library enabled on your iPhone, and the photos already exist on your phone.  To learn more about iCloud Photo Library, take a look at the article below.
    iCloud Photo Library FAQ - Apple Support
    Take care,
    Alex H.

Maybe you are looking for