Add images to stage from php

Hi guys,
I have stucked with this problem for weeks and still can't figure out what's wrong with code. I have fed up with google,.
So far this is what I got;
The php file which I believe has no problem;
<?php
class imageHandler {
     public function getImageList($path="") {
               if(file_exists($path))
               $i1="jpg";
               $i2="png";
               $i3="jpeg";
                           foreach(array_diff(scandir($path),array('.','..')) as $f) {
                    if(is_file($path.'/'.$f) && (($i1)?ereg($i1.'$',$f):1) || (($i2)?ereg($i2.'$',$f):1) || (($i3)?ereg($i3.'$',$f):1) ) $l[]=$f;
                         return $l;
               else return "Path do not Exists!";
     public function ary2xml($arr, $d=0, $forcetag='', $file_name='') {
          $data="<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n";
          $data.="<images>\r\n";
          for($h=0; $h<count($arr); $h++) {
               $data.="<image nameI=\"".$arr[$h]."\" thumb=\"".$arr[$h]."\" src=\"".$arr[$h]."\" />\r\n";
          $data.="</images>";
          if($file_name!='') {
               @unlink($file_name);
               $myFile = $file_name;
               $fh = fopen($myFile, 'w');
               fwrite($fh, $data);
               fclose($fh);
               return $file_name;
          else return $data;
?>
I got this from a awesome tutorial and what I change is adding another attribute for the image xml.
And this is my as3
/*** tranform xml response into array ****/
function xml2Array(dados:String):Array {
            var menuXML:XML = new XML(dados);
            //just in case
            menuXML.ignoreWhitespace = true;
            //get XML item's entrys
            var XMLItems = menuXML.descendants("image");
            //load all items into an array
            var itemsArray:Array = new Array();
            var itemObj:Object;
            for(var i in XMLItems)
                var thumb:Thumbnail = new Thumbnail();
                thumb.imageThumb=XMLItems[i].@src;
                itemsArray.push(thumb);
                itemsArray[i].y = 67.5;
                itemsArray[i].x = i*100+55;
                imageLoader.addChild(thumb);
        return itemsArray;
I can add the thumbnail mc which is blank, but I can't see the images at all.
The images are put inside a folder called images where the php files are put as well.
Please tell me where I did mistake.
I am really frustrated
Thanks in advanced

You can't change the menu in Mail to go directly to Aperture instead of iPhoto, but look at the link below, it may work for you.
http://www.apple.com/downloads/macosx/automator/setupmailimageattachmentworkflow .html

Similar Messages

  • "Add Images" option not showing in Muse Slideshow

    I've also tried > Edit > Place > (my images) and they aren't going in the slideshow.
    And since the button to 'Add Images' is missing from the Composition Options for my slideshow I am unable to change the images.
    Help please? Many Thanks.

    Hi WebLadyKim,
    It looks to me like you are using the wrong tool for creating Slideshows? I say that because as I see in your screenshot it says 'Composition Options' at the top of the dialog box. This tells me you are using the 'Composition' tools instead of the 'Slideshow tools.
    You should see 'Slideshow Options' at the top instead if using the right tool.
    If I am wrong, can you tell me what Slideshow from the panel you are using?

  • PSE v13 on mac, organizer spontaneously adds images duplicates.  How do I stop this from happening?

    just purchased PSE v13 on mac, primarily using the organizer
    issue - Organizer spontaneously adds image duplicates. 
    How do I stop this from happening?

    I enter misc. items in each metadata file, ie. document title, author, description, keywords, copyright notice, etc.  Each image has it's own metadata file, with unique keywords, which are unique to that image. The keywords then show up on the right side of PSE organizer under 'imported keyword tags'.  Then I can select a keyword, unique to that image and wa...la... that image only appears in organizer.  I have been doing this for years (like probably 10). But this is the first time I have experienced the duplication issue.
    Not adding any auto-adjustments in Organizer as far as I know.
    The names are not duplicated in organizer, but appear as ie. scnr0122.jpg and scnr0122-1.jpg.  But the '-1' is not found on my server.  Apparently they are being added from another source.  Is it possible they are being pulled from a cloud server, ie. creative cloud or revel??  I do have the same files on those cloud servers, but am not intentionally duplicating the import.
    here is an interesting side item. 
    Did you know that a man was convicted of murder because of the info found in the metadata of his files?

  • Add pre-roll ad image in flash through php

    Is there a way we can add pre-roll ad image in flash movie/game at the start for a few seconds?
    Is there also a way we can manage this in PHP or any other way?
    Thank you for your help in advance!

    Thank you very much for your help but I am a novice at this field and I was wondering if you could let me know how to follow your instructions in a little more detail.
    My current code is:
    <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="Yourfilename" height="240" width="320">
    <param value=http://www.firefighterflashgames.com/uploads/skyfirefightergame.swf  name="movie">
    <param value="high" name="quality">
    <param value="#333399" name="bgcolor"> <embed quality="high" bgcolor="#333399" name="Yourfilename" pluginspage="http://www.macromedia.com/go/getflashplayer" src=http://www.firefighterflashgames.com/uploads/skyfirefightergame.swf type="application/x-shockwave-flash" height="440" width="750">
    </object>
    Where do you have to insert the code to add image on top of flash movie?
    Thank you again for your help!
    Kind regards,
    Jae

  • Can I not add images to my itunes from Google images or other search engines as when I click get artwork it does not always work

    Can I not add images to my itunes from Google images or other search engines as when I click get artwork it does not always work. I used to be able to do this.

    The sort fields should generally be empty unless you've putting in custom values to sort solo artists by their surnames. You can apply common changes to thousands of tracks at once, just don't apply the wrong change because there is no undo.
    It is a good idea to backup before undertaking large scale changes. See this backup tip for a suggested approach.
    tt2
    Message was edited by: turingtest2

  • 'Add image to Photo' not working from Safari

    Issue: Go to any website.  See a cool pic.  Right-click, and select 'Add image to Photo'. Nothing happens.
    Does not work on iMac, Safari, Firefox both have the same issue.

    I deleted the iPhoto app (kept new Photos)  and restarted computer. It is now working like a breeze.
    MacBook Pro (Retina, 15-inch, Mid 2014), OS X Yosemite 10.10.3

  • Add/Remove data object from dataset

    Hello,
    I was working out a way to add and remove data from a dataset
    on the fly and could not figure out any built in methods to do
    this.
    As I have decided to include spry in my project I like to try
    and utilise as much as of its code as possible since it is
    complicated to explain I have created a simple example – a
    colour picker! (thought it might be more interesting…) of
    what I am trying to achieve at
    http://www.freshfresh.co.uk/spry/
    - if you have a go on this and maybe look at the source code (all
    the JS is embedded in HTML there are no modifications to other the
    other core files). I have only used spry effects etc, including the
    ‘accordion’ – which I have become quite attached
    to, it is really good for condensing pages down.
    You will see I am using the setDataFromDoc method to create
    the dataset – I tried the .data = myArrayOfData; .dataHash =
    hashTable; method i.e. creating from an object rather than array
    but it did’nt seem to play ball with the
    addDataChangedObserver method – it did’nt update itself
    each time it was modified (I am sorry I cannot remember exactly
    what I did – but I tried all kinds of ways…). I stuck
    with the string method because it worked - each time my new dataset
    changed it updated itself on the screen (you will have to have a
    look to understand.....sorry!!), but I would be interested to know
    how such a thing could be implemented using the object route if you
    believe this would be more efficient.
    My second question is more simple – is there a shorter
    way to add and remove a data object from a dataset? – as you
    can see from the source code I have effectively created an
    ‘interface’ to do these tasks…. I could’nt
    work out whether these methods are already built in. Maybe they
    are?
    Third question is… to extract a data object from a
    dataset I use the .dataHash[the_row_id] method – is this the
    right thing to do or could it lead to complications… that is
    using methods that might supposedly be private?
    Fourth question (observation really) – whilst creating
    that colour picker example I went over board with my datasets and
    loaded in several palettes some of which had over 1000 elements or
    data objects. Which inevitably was very slow (on my computer
    anyway) – but it got me thinking about trimming the contents
    of my spry regions for better performance. I am I right in thinking
    that the less HTML etc that there is in a spry region the quicker
    SPRY will process it. For example say you had spry repeat with an
    image tag in with some onclick, onmousover, onmouseout, style
    attributes etc and compare this to a spry repeat with a simple
    image with minimal attributes set. I suppose what I am trying to
    say is – does spry ‘store’ all the contents of
    each spry region somewhere? Or does it just process it and leave it
    to the browser dom?
    Fifth observation.... I find it really difficult to explain
    computer technicalities in writing. It must be tough reading these
    posts.... I know I find it difficult sometimes when dealing with
    written end user feedback!
    Andrew

    Just clarifying my questions a bit further....
    I found some old code regarding question 1 by using the
    object method I mean something like this...
    var mySwatches = [{'@hex':'ff0000'},{'@hex':'00ff00'}];
    var hashTable = [];
    function createDs(){
    for (var i = 0; i < mySwatches.length; i++)
    mySwatches
    .ds_RowID = i;
    hashTable = mySwatches
    dsMySwatches.data = mySwatches;
    dsMySwatches.dataHash = hashTable;
    dsMySwatches.loadData();
    i.e. not writing out a whole XML string string as the online
    example does. When using this way I did'nt seem to be able to get
    the HTML to refresh. I tried using [
    Spry.Data.updateRegion('mydata'); ] after recreating the dataset I
    also tried adding an [ .addDataChangedObserver ] (like in the
    string example) amongst numerous other ways but it just would not
    work like the string way. - Maybe I did something wrong somewhere.
    In question 3 I refer to the [ .hash ] method .... its not a
    'method' its a 'property' - my question should read - is it ok to
    access private properties (from a browser campatiblity/security
    point of view) that do not have specific methods to gain access to
    them. I suppose it does'nt really matter with JS...
    In question 4 I mention minimising the amount of code in a
    spry region to speed it up. A clearer example of this might be for
    example - a gallery with lots of images. As we know there will be a
    slight delay as SPRY writes all the html so to speed up that intial
    write I strip out all the image attributes such as onlclick do
    this, onmouse over do that... and add these after the images have
    loaded using a seperate function similar to my
    fillSwatches(ds,prefix) function in my online colorpicker example.
    I suppose it like a 2 tier processing of all the data. SPRY does
    the intial display writing to get everything in place and then
    another pass is made over to add any further functionality
    adjustments etc. I am still not sure if that makes any sense!
    ***edit
    Also on the subject of speed and the application as a whole
    i.e. including my PHP - In one example I was creating I ended up
    with an XML structure where each node has over 14 attributes i.e.
    <somenode att1=”x” ……..
    att14=”z”/> - as the file grew it obviously took
    longer to process particularly on the server side, i.e. added all
    those attributes just slowed it all down. So I did
    this…… <somenode att1=”x:y:z” /> i.e
    condensed selected attributes into a string that I could explode
    later on.
    Obviously this limits SPRYS ability to access the attributes
    using the {attr} syntax. I had to create a function to explode the
    array and do the ‘necessary’ on a second pass over the
    data – this works ok for me. But its interesting that in this
    particular case the server could not refresh the XML in an
    acceptable time without doing this – just thought that might
    be interesting to you. I suppose technically what I am doing is
    abusing the concept of an XML structure and simply using it as a
    ‘carrier’ to feed my application …. Which I
    suppose is where JSON comes in…. which is a bit more compact
    and maybe faster to manipulate on both the server and client side
    – I don’t really know, I have never used it –
    just throwing ideas around!!
    Andrew

  • Flash Builder 4.5 for PHP - show variable from PHP in app

    I have searched for hours and I can't figure this out…
    Is there a way to somehow "echo" my PHP code in my MXML file ?
    I know you can't echo something from PHP to MXML, so here's what I have done :
    I get my informations from my database, I need to show an image and its title, so I put the following code in a variable :
    <mx:Image id="laniraBlanche" x="25" y="65" width="210" height="126" source="'.$row->image_mini.'" click="selectLaniraBlanche()" rollOver="seePicture()" rollOut="outPicture()" />                                              <s:Label x="25" y="155.85" text="'.$row->nom.'" width="210" textAlign="center" height="37" fontSize="19" backgroundColor="#676666" verticalAlign="middle" fontFamily="Georgia" color="#FFFFFF" click="selectLaniraBlanche()" rollOver="seePicture()"  id="laniraBlancheTxt" rollOut="outPicture()" />'
    Then, I return that variable.
    I find the function where my var created is returned from the "Data/Service" tab, I am on Design mode on Flash Builder, and I "drop" my function where I want my image and text to show on my app.
    I tryed dropping it in a "group", it doesn't show anything. I tryed several other options, and nothing worked.
    So my question is, how could I have this code created in PHP show on my application ?
    Thank you  for your help

    I also have Flash Builder 4.5 for PHP and the ANT view does not show when going to Window -> Show View --> Other.  I could not find it in any of the folders.
    However, I was able to add it by hitting Command 3 (CTRL 3 on PC) and typing Ant.

  • Proportional Scaling external Image to stage

    Sounds confusing I know but basically I want to place some images on the stage and I want every image, whether big or small, portrait or landscape, to be scaled to about a quarter of the stage size.
    I have tried coding this myself and even tried many suggestions found on the web, but they all seem to do the same thing. The code either sizes every image to be equal in width and varying height, or scale every image to be equal in height with varying width.
    Say you have some images all the same size, but some in landscape orientation and some in portrait orientation. Most of the code I found for "proportional scaling" would scale the landscape images okay, but make the portrait images the same height as the others, so they looked alot smaller. Or the reverse was true.
    example:
    image.width = stage.stageWidth;
    image.height = stage.stageHeight;
    ( image.scaleX < image.scaleY ) ? image.scaleY = image.scaleX : image.scaleX = image.scaleY;
    This makes all the images fit on the stage all right, but they all have the same width. reversing the equality amkes all teh heights the same.
    If two images did not have the same width before they are scaled down, they should not have the smae width afterwards in my opinion.
    Sometimes I get some code that seems to work, then I change the stage size to check it and all the images did not scale to 1/4 of the stage new size when the FLA was run.
    I bet this is simple, but I have been working on it too long, y mind is in a knot!

    I loaded an array with a Loader and then used a random a variable to pick from the array using a variable that has the length of the array in it: here is the code, but the cut and paste does not wok that well.
    import com.greensock.TweenLite;
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load(new URLRequest("link to picasa photo rss feed"));
    XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
    var media:Namespace=new Namespace("http://search.yahoo.com/mrss/"); imagesArray:Array = new Array();
    var imagesDateUploaded:Array = new Array();//The title properties of the XML File
    //var imagesWidth:Array = new Array();
    //var imagesHeight:Array = new Array();
    var imagesLength:uint;
    var imagesLoadedCount:int=0;//A counter, counts the images loaded
    var formatFont:Myriad = new Myriad();//This is the embedded font 
    var textformat:TextFormat = new TextFormat();//A TextFormat Object
    textformat.color=0xFFFFFF;
    textformat.font=formatFont.fontName;
    textformat.size=80;//Use the same size you used when embedding the font from the Library 
    var
    function processXML(event:Event):void {
    var XMLdata:XML=new XML(XMLURLLoader.data);
    imagesLength=XMLdata.channel.item.length();
    for (var i:uint=0; i < imagesLength; i++) {
      var loader:Loader = new Loader();
      loader.load(new URLRequest(String(XMLdata.channel.item[i].enclosure.@url)));
      imagesArray.push(loader);
      var imageDate:String=XMLdata.channel.item[i].pubDate.substr(6,10);
      imagesDateUploaded.push(imageDate);
      loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imagesLoaded);//A listener to the function that will be executed when an image is loaded
    function imagesLoaded(event:Event):void {
    imagesLoadedCount++;//Adds one to the imagesLoaded variable
    if (imagesLength==imagesLoadedCount) {//When all images are loaded
      prepareImages();//This function is explained in the next step  
      var maxSize:Number=stage.stageWidth/2;
    function prepareImages():void {
    //These actions will be applied to all the images loaded so we use a "for" and the "images" array to do that
    var i:uint = Math.floor(Math.random()*imagesLength);
    trace(i);
      var container:Sprite = new Sprite();//A container that will store the image, frame, TextField, TextField background and shadow
      var frame:Sprite = new Sprite();//The Frame Sprite
      var infoArea:Sprite = new Sprite();//The TextField background
      var infoField:TextField = new TextField();//The TextField
      //build the frames
      frame.graphics.beginFill(0xFFFFFF);
      frame.graphics.drawRect(-20, -20, imagesArray[i].width + 40, imagesArray[i].height + 40);
      frame.graphics.endFill();
      //creates a black rectangle in the bottom part of the image, where the TextField will be.
      infoArea.graphics.beginFill(0x111111, 0.5);//.5 is alpha
      infoArea.graphics.drawRect(0, 0, imagesArray[i].width, 100);//100 = height 
      infoArea.graphics.endFill();
      infoArea.y=imagesArray[i].height-100;
      //The following code sets the TextField properties and adds its contents
      infoField.defaultTextFormat=textformat;
      infoField.embedFonts=true;//You have to add this to use the embedded font  
      infoField.antiAliasType=AntiAliasType.ADVANCED;//This property will display the text more clearly
      infoField.width=imagesArray[i].width-5;
      infoField.height=100;
      infoField.text=imagesDateUploaded[i];//The content, obtained from the XML and stored in the Array
      //The images will have a random position based on the center of the Stage area. We use Math for that.
      //add a shadow filter
      //Distance, angle, color, alpha, blur, strength, quality
      var shadowFilter:BitmapFilter=new DropShadowFilter(3,90,0x252525,1,2,2,1,15);
      var filterArray:Array=[shadowFilter];
      container.filters=filterArray;//Apply the filter
      //adding children to container
      infoArea.addChild(infoField);//Adds the TextField to the TextField Background  
      container.addChild(frame);//Adds the Frame to the Container
    var bd:BitmapData= new BitmapData(imagesArray[i].width, imagesArray[i].height);
    var bmp:Bitmap = new Bitmap(bd);
    bd.draw(imagesArray[i]);
    container.addChild(bmp);
    // using the loader from the array directly was causing problems like only showing once.
    //  container.addChild(imagesArray[i]);//Adds the Image on top of the Frame in the Container  
      infoArea.visible=true;//We set the image information to invisible by default  
      container.addChild(infoArea);//Adds the information area in top of everything
      //resize the images to no more than 1/2 the image width or height compared to stage
      if (container.width>container.height) {// horizontal asset
       container.width=maxSize;
       container.scaleY=container.scaleX;
      } else {// vertical asset
       container.height=maxSize;
       container.scaleX=container.scaleY;
      container.x = Math.floor(Math.random()*(1+stage.stageWidth - container.width-20))+20;
      container.y = Math.floor(Math.random()*(1+stage.stageHeight - container.height-20))+20;
      //the  plus and minus 20 keeps the image in the stage boundary. something wrong with the container width calculations
      this.addChild(container);//Lastly, we add the Container to the Stage
      container.alpha = 0;
    TweenLite.to(container,1,{alpha:1});
      trace("Just added child");
    var timer:Timer = new Timer(5000,1);
    timer.addEventListener (TimerEvent.TIMER, initTimer);
    timer.start();
    function initTimer(event:TimerEvent):void{
    trace("Timer started");
    prepareImages();
    timer.reset()

  • Larger image pop up using php / database

    Hi,
    My photographic site gallery section runs off a data base
    where the images
    are uploaded via a content management system into the folder
    images/photos.
    The images are then loaded from this folder and run through a
    downsizing
    script to their appropriate areas ie gallery thumbnails and
    gallery images.
    What I am wanting to do is add a section on the image page so
    people can
    view a larger image.
    I have made a _blank link made to
    seelarger.php?im=images/photos/<?=$image?> on the image
    page with a text
    link
    and the image on the seelarger.php is
    images/photos/<?=$image?>
    This isnt working.... how can I transfer the image on the
    image page to a
    another page.
    Thanks
    Matt
    Matt Lauder Gallery
    Panoramic Images of Australia
    www.mattlauder.com.au
    0414 374 533

    Do I replace the
    seelarger.php?im=<?php echo urlencode($image); ?> code
    you gave me before
    with
    seelarger.php?im=<?php echo urlencode($image);
    ?>&amp;title=<?php echo
    urlencode($title); ?>
    and can you confirm what code I need on the seelarger.php
    page.
    as I replaced the seelarger.php?im=<?php echo
    urlencode($image); ?> code
    with the new one you gave and nothing happened.
    Thanks
    Matt
    "David Powers" <[email protected]> wrote in message
    news:ej84c4$283$[email protected]..
    > matt wrote:
    >> Excellent.... worked perfectly thankyou.... now how
    do I do the same with
    >> the title.... on the image page I have it as
    <?=$title?>
    >>
    >> And on the seelarger.php I have it as echo
    >> "<title>{$_GET[title]}</title>";
    >
    > You need to pass the variable from one page to the next.
    It doesn't just
    > appear by magic.
    >
    > seelarger.php?im=<?php echo urlencode($image);
    ?>&amp;title=<?php echo
    > urlencode($title); ?>
    >
    > --
    > David Powers
    > Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    >
    http://foundationphp.com/

  • How do I add image upload to web app edit template?

    How do I add image upload to web app edit template. When creating fields I am selecting image from the field type. But the only way to upload and image is when I create the web app item within the admin. The option to upload an image is not available when the user submit web form opens.
    Wont send any of these questions through this email anymore but really needed assistance.
    Thanks,
    Gordon

    On the Details tab of the Web App setup, under Web App Item Options; have you ticked "Allow File Upload" and specified a Default Upload Folder?

  • How to add Images and PDFs in MDM iView

    Hello!
    We use SAP Portal as interfase to access SAP MDM repository tables.We use MDM Record Set and MDM Item Detail iViews to display and operate with main table content.
    There is a field in the qualified table, which is the lookup to the Images table. And the other field is the lookup to the PDFs table. Both fields are qualifiers.
    In the main table there is a field, which is the lookup to the qualified table. When we try to add values to this field using Item Detail iView, we get a window, where we can fill all values of the qualified table, except Image field and PDF field - they are disabled. So, can we add Images and PDFs to the table using Item Datail iView? Or what is the other way to add them?
    Thanks,
    Vika
    Message was edited by:
            Viktoria Demina

    Ooohh... you mean, like the one mentioned in http://indesignsecrets.com/adding-zoom-and-print-to-indesign-swf-files.php?
    But they want to get paid for their hard work, the bastards!

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  • Add Image in ABAP Report

    Hi All,
    I want add image in ABAP Report.
    Please let me know how it can be done?
    Regards,
    Jagdish More

    Hi Jagdish,
    to upload the image follow these steps.
    1. Upload image in web repository.
    Go to Transaction SMW0 to upload the image in SAP web Repository. elect second radiobutton u201DBinary data for WebRFC applicationsu201D and click on find.
    2.     Click on Execute.
    3.     Click on Create and give the obj.name and description and click on import.
    once the image gets uploaded.in your program do the following
    1.     Create a Screen.Go to Layout and create Custom Control.I have named it as u2018CONTAINERu2019.
    2.     Declare container(Custom Control name),picture(child of Container) and url in Top of the program.
    data container type ref to cl_gui_custom_container.
    data picture type ref to cl_gui_picture.
    data url(256).
    3.     Now create the object Container and Picture.
    create object container
           exporting container_name = 'CONTAINER'.//name of the custom control
        create object picture
           exporting  parent = container
           exceptions error = 1.
    4.     Now we have to load the picture from the database which we have uploaded. For this we need to declare the following:-
      data query_table like w3query occurs 1 with header line.
      data html_table like w3html occurs 1.
      data return_code like  w3param-ret_code.
      data content_type like  w3param-cont_type.
      data content_length like  w3param-cont_len.
      data pic_data like w3mime occurs 0.
      data pic_size type i.
    5.     Refresh the Query table and give the name of Query table as u2018_OBJECT_ID_u2019 and value as the name of logo/Image which u have uploaded.Append the value in the Query Table.
      refresh query_table.
      query_table-name = '_OBJECT_ID'.
      query_table-value = 'ZLOGO.GIF'."name of logo
      append query_table.
    6.     Now call the function WWW_GET_MIME_OBJECT to get the logo/image which u have uploaded and call the function DP_CREATE_URL to create the url where the image is present.
    call function 'WWW_GET_MIME_OBJECT'
        tables
          query_string        = query_table
          html                = html_table
          mime                = pic_data
        changing
          return_code         = return_code
          content_type        = content_type
          content_length      = content_length
        exceptions
          object_not_found    = 1
          parameter_not_found = 2
          others              = 3.
      if sy-subrc = 0.
        pic_size = content_length.
      endif.
      call function 'DP_CREATE_URL'
        exporting
          type     = 'image'
          subtype  = cndp_sap_tab_unknown
          size     = pic_size
          lifetime = cndp_lifetime_transaction
        tables
          data     = pic_data
        changing
          url      = url
        exceptions
          others   = 1.
    7.     Finally we have to upload the image from the URL, this can be done by calling the method: picture->load_picture_from_url
    call method picture->load_picture_from_url
    exporting
    url = url.
    Now Save,Activate and Execute the Program , Image/Logo got successfully uploaded.
    I have already done this program and uploaded the image...
    this will surely help you
    Thanks and regards,
    Tanmaya

  • Add images in jar file

    how to add images in jar file?

    Check this article in ADF code corner:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/86-images-from-jar-427953.pdf
    Thanks,
    Navaneeth

Maybe you are looking for

  • Project Systems - Report on WBS and Settlement recievers

    Need help in searching for any PS report wherein I can get list of WBS elements along with the settlement receivers defined in the settlement rule. Or else how can we get such a report.

  • Material movement from Quality to Unrestricted

    Dear All    My problem is that i have given UD for a particular batch and posted the stock from quality inspection to unrestricted use. But when i see in the stock overview the quantity still lies in Quality i.e in MMBE But when i see in QA33 the sto

  • AP Layers (divs)...

    Hi, I'm just getting comfortable with the concept of using DIVS vs. tables. I just watched a tutorial on YouTube in which a developer used AP Layers to create all his div tags, in DW CS3. (absolute placement layers) I'd like to know what you think of

  • How application server will take more database connection than specified

    Hi,        While configure the datasource we have specification's/properties for         1)Initial Connection  (for ex. 1)         2)Maximum Connection(for ex. 120)         But we donot know how the SAP Server will take the connection after it reache

  • TS3274 Touch screen issues

    How can I fix some touch screen controls are not working. Also sometimes the space bar is not responding. I've tried power reseting but to no avail.  This situation just started yesterday no warning. Is there a utility to adjust touch screen sensitiv