Using bitmapData while copying image from a movieClip

The problem that i m getting right now is that when i load an
image into the movieClipLoader object & then get it's contents
through BitmapData() function.What happens that if the file that i
hv loaded through movieClipLoader lies in the same domain
,bitmapData() works f9,but when the image is loaded from another
domain,let say a wallpaper from another site,then bitmapData()
doesn't copy the pixels rather gives a white picture when redrawn
into another movieclip.
Also i hv used the crossdomain.xml And allowed all the
domains.Now i don't know what's the problem of accessing that
loaded image through bitmapData().......
Could any one plz help me with this problem.

The FileInputStream constructor argument should point a local file(*), not a remote one.
(*: Sometimes it could be a pseudo local file on a networked file system like NFS on Unix/Linux.)

Similar Messages

  • Error while getting  image from database in SUP using ios?

    Hi All,
      Im developing native iOS application using sup 2.1.3 . Im getting error While retrieving  image from SUP database. Here i'm trying to get image from database and show in imageView.can any one help me how to fix this issue?
    In database image datatype is  'LONG Binary' .
    My table Schema:
    CREATE TABLE dba.ImagesTable (
    RowID INT NOT NULL,
    ImageName VARCHAR(20) NOT NULL,
    PhotoData LONG BINARY NOT NULL,
    IN SYSTEM
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA137 PRIMARY KEY CLUSTERED (RowID)
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA138 UNIQUE NONCLUSTERED (RowID)
    in Xcode:
                [SUP107SUP107DB synchronize];
                SUP107ImagesTable *imgTable =[[SUP107ImagesTable alloc]init];
                SUP107ImagesTableList *list =[SUP107ImagesTable findAll];
                SUP107ImagesTable * oneRecord =[list objectAtIndex:0];
                NSLog(@"rowId:%d---imageName:%@---photoData:%@---photoLenght:%d",oneRecord.rowID,oneRecord.imageName,oneRecord.photoData,oneRecord.photoDataLength);
                NSData *tempData =[[NSData alloc]init];
                SUPBigBinary *responseBinaryData = (SUPBigBinary *)oneRecord.photoData.value;
                @try {
                    [responseBinaryData openForWrite:[oneRecord.photoData length]];
                    [responseBinaryData write:tempData];
                @catch (NSException *exception) {
                    NSLog(@"exception: %@",[exception description]);
                UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(50,50,100,100)];
                [self.window addSubview:imgView];
                UIImage * tempImage =[UIImage imageWithData:tempData];
                imgView.image = tempImage;
                [responseBinaryData close];
    Error Log:
    2014-04-02 18:42:15.150 SUP102[2873:70b] rowId:1---imageName:Apple---photoData:SUPBigBinary: column=c pending=1 allow_pending_state=1 table=sup107_1_0_imagestable mbo=0x0 key=(null) ---photoLenght:90656
    Printing description of responseBinaryData:
    <OS_dispatch_data: data[0xc891b40] = { leaf, size = 90656, buf = 0x1213a000 }>
    2014-04-02 18:42:33.304 SUP102[2873:70b] -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] exception: -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.306 SUP102[2873:70b] [ERROR] [AppDelegate.m:497] NSInvalidArgumentException: -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40

    This thread talks about uploading image to SAP from a IOS device,Sending Image to SAP via iOS Native app (SUP 2.1.3)
    Midhun VP

  • Error while copying data from infoprovider to planning area

    Hi,
    Error for COM routine using application program (return code 40,075)
    Message no. /SAPAPO/OM102
    Diagnosis
    An application program has called a COM routine. During the process, an error occurred.
    I got the above error while copying data from infoprovider to planning area using t code TSCUBE.
    How to resolve this?

    Hi,
    Is your issue resolved, If not please run MPOS consistency checks, Planning area consistency check and livecache consistency check.
    Below are the programs for the same.
    /SAPAPO/TS_lcm_cons_check
    /SAPAPO/TS_PSTRU_TOOL
    /SAPAPO/TS_PSTRU_CONS_CHECK
    Regards
    Kishore

  • How to copy images from another MC in reversed order??

    Hi everyone,
    I'm new to AS3 and have been fighting and searching for a solution to this problem for a week now, and I'm VERY close!
    I crated a MC holding of a series of images (about 50) and I jump around in it using plenty AS3 scripts (most of which I don't fully understand yet, but I'm working on that to! )
    I had to find a way to "rewind" (= play backwards) the MC. Since there is a stop(); command in almost every frame, prevFrame does not work and if I put that in a loop, it goes WAY to fast (but worked).. So I could think of only one way...
    Create a new (reverserd) MC with the same image sequence ald reverse it manually and play that one.
    This all works fine (very proud of it ).
    Now my question:
    To get this to work for multiple image sequences, I have to load all images twice (once in MC_1 and again in MC_2 and select them and reverse them).
    Not a big one, unless you want to create MANY of those SWF's...
    Is it possible to load the 50 images of the first MC in reverse into the second MC dynamically? JUST the images, noting else.
    extra info: the MC_2 is already in the lib(empty) and placed on the stage.
    something like:
    var pointer:Number=1;
    for (var:i:Number=50;i>=0;i--) {
    get MC_1.picure(var);
    put it in MC_2.frame(pointer);
    pointer = pointer + 1;
    All help is welcome and please take into account that I have little experience and copy most of my scripting from people like you
    T.I.A.
    Melluw

    I tried your advice (thanks for that)
    The event I already have is the mouse leave
    I //-d out the part I removed (what did work)
    The code I ended up with is:
    function Start() {
    stage.addEventListener(Event.MOUSE_LEAVE, cursorHide);
    function cursorHide(evt:Event):void {
    var currFrame = MC_1.currentFrame;
    if (CCW == true) {  //it is true in this case
      movStart = (50 - currFrame);
    else {
      movStart = currFrame;
    if (movStart>25) {
      MC_1.prevFrame();
    // removed swapChildren(MC_1, MC_2); // This is the part I removed
    // removed MC_2.gotoAndPlay(movStart);
    else {
      MC_1.gotoAndPlay (movStart);
    And if I leave the stage on the part where movStart is indeed >25
    Nothing happens,
    So I guess this is not what you meant
    Subject: Action Script 3 how to copy images from another MC in reversed order??
    I cannot direct you in the loading of the images approach, it will be too complicated, and will probably not work anyways... when you move away from a frame that has dynamic content, you lose the content.  So basically, there is nothing practical in taking that approach.
    I do niot understand what the problem will be with the enterFrame/prevFrame approach. If everything you can do with the mouse is already used (which I doubt) by the first mc, then there is nothing else you can do with this file.  You probably just need to rethink your control scheme.  You should search Google for "AS3 slideshow tutorial", and to lighten up your design, add "XML" in that search.
    >

  • How do I copy image from web and paste into Open Office Document

    Whenever I choose Copy Image from Safari and then paste into open office, I only get the image url and not the image. I am sure that I am not selecting Copy Image Address.
    When I copy images from my iTunes album artwork and paste into open office it works fine.
    Any thoughts?

    I have done the same thing using Firefox and it works just fine. It seems to be an issue with Safari.

  • Can I copy images from Album to Album

    Can I "copy" images from Album to Album and then expect to be able to export that data into Keynote?
    I put copy in quotes because I am such a new user I am not even sure at this point when I am copying or moving images as opposed to pointers.
    But the bottom line is that I need to know if I can use the data in Albums that I see images in for a presentation.
    Thanks.

    Aperture 3 does have a few things that work in different ways than Ap2, but dragging images to albums is the same. Cut/copy has never been a feature. It works in a different way. Allan

  • How to copy images from iPhone folders other than camera roll?

    How to copy images from iphone folders other than camera roll?
    Images in these folders are synced to iPhone from different laptop and I need to download them in my laptop. I am able to download and access only those pics which are present in Camera Roll folder.Remaining pics are in different folder and also appearing in Photo Library from all folders.
    Same problem is with iPod touch as well.

    - Via a computer program like PhoneView or Touch Copy
    - By using an app like Photo Transfer

  • How do you copy images from the internet and paste them on Microsoft Word

    I'm trying to copy images from the internet and trying to paste them on to Microsoft Word and Powerpoint for an assignment but it's not working. I tried to use copy and paste and then paste special but nothing is working. Saving the image onto documents and trying to open them on Microsoft Word still doesn't work.
    PLEASE HELP!!!
    Thank you

    Hi Lily, and welcome to Apple Discussions.
    A screenshot can capture almost anything you're viewing. Hold the command and shift keys down, then press the 4 key and release all keys. Hold down the mouse button and drag the cursor to the size/area of the image you want to capture. Release the mouse button and you've captured the image. Remember that it is the individual's responsibility to respect copyright laws.

  • While copying photos from pc to ipad only one folder gets copied, while copying photos from pc to ipad only one folder gets copied

    while copying photos from pc to ipad only one folder gets copied and while trying for other folders, the previous one which copied earlier does not appear.

    Are you selecting all of the folders to sync?
    Note that if you deselect a folder it will be removed.

  • My RGB colors are turning to cmyk while bringing image from illustrator or photoshop. Why?  Removing the image from that page bright RGB colors are back.. hmm

    My RGB colors are turning to cmyk while bringing image from illustrator or photoshop. Why? 
    Removing the image from that page bright RGB colors are back.. hmm

    Edit > Transparency Blend Space > Document RGB

  • How do you Automatically Copy Images From Camera?

    I would like to create an AppleScript that will run when I plug in my digital camera. Here is what I cannot figure out.
    How to make it run when the camera is plugged in.
    How tow to copy images from camera to a designated folder.
    Thanks!

    You can do all you requested - without 'AppleScript'.
    01. Connect your camera launch 'Image Capture' ('/Applications/' folder - if it does not automatically launch.
    02. Select the 'Image Capture, Preferences...' menu item.
    03. Click on the 'General' tab.
    04. From the 'Camera:' 'When a camera is connected, open:' pop up menu - select the 'Image Capture.app' menu item.
    05. From the 'Devices' menu select your camera from the menu items list. A window will appear with the title of your camera.
    06. From the 'Download To:' pop up menu select where to save the camera's photographs. You can select any folder anywhere on your hard disk drive(s).
    07. Click the 'Options...' button, and from the drop down sheet click on the 'Connection Options' 'Automatically download all items' check box - to add a check mark. There are other options you may have be interested in.
    08. Click on the 'OK' button.
    09. If you want to download the photographs now - click on the window's 'Download All' button. Or, to test the above setting changes - quit 'Image Capture' and disconnect your camera. Then reconnect the camera - and watch the above setting changes take effect.
    Note:
    The above automatic action can also happen if the storage device of the camera were inserted into a USB digital camera card reader. So long as apply the Steps above, and you select the USB digital camera card reader from the 'Devices' menu's menu item list in Step 05 above.
    'Image Capture' is not scriptable; but, may be control-able via 'tell application "System Events" to tell process "Image Capture" ....
    When a camera is connect to the Mac, the storage card of the camera is mounted onto the 'Desktop' and also listed, as an alias, in the (invisible) '/Volumes/' folder.
    Now that you know the name of the storage card ... you can create a 'Folder Action Script' (an example is presented below) and save it into the '/Library/Script/Folder Action Scripts/' folder,
    Open the '/Volumes./' folder (in 'Finder' via 'Go, Go to Folder' - enter '/Volumes/').
    Perform a right button click ('<control> - click, for single button users) on the 'Volumes' folder's window, and select 'Enable Folder Actions' (if not already).
    Rpeat the right button click (<control> click) and select 'Attach a Folder Action...' - selecting your script ('Volumes_FAS.scpt' as shown below).
    Below is a 'Folder Action Script' example - where you will have to substitute 'NO NAME' with the name of your digital camera's storage card's name.
    -- --- Save code as a script with the name 'Volumes_FAS.scpt' --- --
    on adding folder items to this_folder after receiving added_items
    set myStorageCard to "NO NAME" -- The name of my 1 GB stroage card. The name of your card may differ.
    repeat with i in added_items
    tell application "Finder" to set tName to (name of i) as string -- Obtain name of mounted storage card.
    if (tName is equal to myStorageCard) then my handle_card(i) -- If my storage card, continue processing.
    end repeat
    end adding folder items to
    on handlecard(localVolume)
    set folder_Path to ((path to desktop folder from user domain) as string) -- Path to 'Desktop' folder.
    set download_Folder to "NO_NAME Photographs" -- Name of folder to store storage card's items (files and folders).
    -- create download_Folder, if it does not exists.
    tell application "Finder" to if (not (exists folder (folder_Path & download_Folder))) then make new folder at (folder_Path as alias) with properties {name:download_Folder}
    -- Duplicate all the items (files and folders) of the storage device to the '~/Desktop/NO_NAME Photographs' folder.
    tell application "Finder" to duplicate items of local_Volume to (folder_Path & download_Folder) as alias
    end handle_card
    -- --- End of code --- --
    Review 'Finder's dictionary (in 'Script Editor') for the various ways to incorporate 'duplicate ...'.
      Mac OS X (10.4.4)  

  • Using Lifeblog to copy images to my computer from ...

    Help please and sorry if this has been posted before (new to this forum).
    At the moment I can't transfer images from my N95 to my computer via Lifeblog. Each time I try I'm told there's a system error. There's no issue about space on either the phone or the computer so it's a mystery to me.
    Has anyone out there had this problem and resolved it?

    I have had this problem also. It was copying fine until I received a phone call during the copying process which disrupted it. Now every time I try to copy from the phone, I get system error message on the phone and no items were copied message on my PC. I am trying to copy all content to my lifeblog not just images.
    I hope Nokia answer this soon. It's 7 months since this question was asked! Great response time!

  • I can`t copy image from the web sites to Microsoft Word, since I update firefox ! Why ? How I can fix it ???

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/939085]]</blockquote>
    I am tryin to copy image form ZABBIX to Word document. Everything was fine before update and now I am having a problem

    More generally, when you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    (You also can clear Firefox's cache completely using:
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now")
    (2) Remove the site's cookies (save any pending work first) using either of these:
    While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?

  • Using robocopy to copy files from a network share over a WinRS command line session

    Hello,
    Preface: Using server 2008 enterprise.
    I can't seem to get robocopy to function over WinRS and I'm not sure where the problem actually lies.  Running robocopy locally on the computer does work fine, but as soon as I try to run it through a remote command prompt through the WinRS client or directly with the WinRS client I get an access denied message (error 5).
    I've tried using runas while logged into the remote command prompt as well, thinking that it could have been some sort of permissions inheritence issue.
    I've checked the permissions on the remote file share, I've even given 'Everyone', 'Anonymous Logon' and the computer's active directory account full control over the folder and the file I'm trying to copy, but still get the access denied error.
    I've tried using /COPY:DT since I read that usually resolved error 5 issues.
    None of these things have worked.
    I'm kind of out of ideas, I've read some blogs of people who have written powershell scripts which use winrm/robocopy so I figure I'm missing something stupid.  Or maybe I've stumbled upon a bug?
    C:\>robocopy \\192.168.100.1\share c:\test example.exe
       ROBOCOPY     ::     Robust File Copy for Windows
      Started : Mon Feb 09 17:35:32 2009
    2009/02/09 17:35:32 ERROR 5 (0x00000005) Getting File System Type of Source \\192.168.100.1\share\
    Access is denied.
       Source - \\192.168.100.1\share\
         Dest : c:\test\
        Files : example.exe
      Options : /COPY:DAT /R:1000000 /W:30
    2009/02/09 17:35:32 ERROR 5 (0x00000005) Accessing Source Directory \\192.168.100.1\share\
    Access is denied.

    Yep, I verified permissions on them all :(
    To maybe complicate the issue, I looked at the environment variables for myself while logged in locally to the computer and through WinRS and they look to be the same.   
    EDIT: Out of pure frustration I wrote a quick console application which impersonates the currently logged in user and copies a file from the network share I'm trying to access to the local computer.  The application properly impersonates the user - but does not copy the files while it's run through WinRM.  When you run the application as a locally logged in user it works just fine.
    WinRM must be behaving goofy :(
     This is the output of the following application:
    C:\Windows\System32>test.exe 
    Name: domain\loggedinuser 
    IsAuthenticated: True 
    User: {GUID} 
    AuthenticationType: Kerberos 
    Destination directory doesn't exist, creating new directory.. 
    Undoing impersonation.. 
    No exceptions, no nothing :(
    Imports System.IO 
    Imports System.IO.File 
    Module Module1 
       Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext 
       Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity 
       Dim cpr As New copyProgress(AddressOf FileCopyProgress) 
       Dim destinationDir As DirectoryInfo = New DirectoryInfo("c:\destination\") 
       Private Delegate Function copyProgress(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32 
       Private Declare Auto Function CopyFile Lib "kernel32.dll" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal lpProgressRoutine As copyProgress, ByVal lpData As Int32, ByVal lpBool As Int32, ByVal dwCopyFlags As Int32) As Int32 
       Private Function FileCopyProgress(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32 
       End Function 
       Private Function FileCopyProgress2(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32 
       End Function 
       Sub Main() 
          Try 
             currentWindowsIdentity = CType(System.Security.Principal.WindowsIdentity.GetCurrent, System.Security.Principal.WindowsIdentity) 
             impersonationContext = currentWindowsIdentity.Impersonate() 
             Console.WriteLine("Name: " & currentWindowsIdentity.Name) 
             Console.WriteLine("IsAuthenticated: " & currentWindowsIdentity.IsAuthenticated) 
             Console.WriteLine("User: " & currentWindowsIdentity.User.ToString) 
             Console.WriteLine("AuthenticationType: " & currentWindowsIdentity.AuthenticationType) 
             If Not destinationDir.Exists Then 
                Console.WriteLine("Destination directory doesn't exist, creating new directory..") 
                destinationDir.Create() 
             End If 
             CopyFile(Path.Combine("\\192.168.100.1\share\", "example.exe"), Path.Combine("c:\destination\", "example.exe"), cpr, 0, 0, 0) 
          Catch ex As Exception 
             Console.WriteLine(ex.ToString) 
          Finally 
             Console.WriteLine("Undoing impersonation..") 
             impersonationContext.Undo() 
          End Try 
          Console.ReadKey() 
       End Sub 
    End Module 

  • I want to copy images from my Photoshop Elements to I Photo then upload them to my website.

    I want to copy or transfer images from my Elements10 to IPhoto, then upload them to my website on Smugmug.

    You can probably upload directly from your photo file as well....I have a site at smugmug as well and that's how I used to do it all the time

Maybe you are looking for

  • Itunes 10.6 crashes when connecting to Store or loggin in

    On a brand-new desktop PC (w/ Windows 7 Prof 64-bit, Intel i7 Ivy Bridge Quad-Core CPU, 16 GB of RAM, SSD...), Itunes (10.6.3.25) keeps crashing (with a "Itunes is not working anymore" pop-up) when connecting to the Itunes Store or logging in with my

  • Can u help answer two questions I don't know?

    I'm trying to answer a guide for the Certification exam and I don't know the answer of this 2 questions can u help me? Which  steps should be carried out in a transaction that implements an updating technique? (True/False) Call the ABAP command COMMI

  • Public Folders missing in XI 3.1

    How can I allow an end-user to see the Public Folders link in InfoView XI 3.1? It was there in XI R2, but disappeared in XI 3.1. I can still see it when I login as Admin.

  • IDOC error status 'Enter the Document Number'

    Hi PI or SD masters, I have a status 51 in my IDOC. The reason was 'Enter the Document Number'. Has anyone encountered this before?

  • Error table

    Hello , I need to know where can i find name of table with all my errors when i run a deploy mapping. I found the table wb_rt_error but in this table i see just a execute error. Thanks