OutOfMemory while creating Images from camera's pictures

Hi there,
I am trying to create a javax.microedition.lcdui.Image object from a JPG image created by the 8120 camera. So far I’ve tried simulator only. I use JDE 4.3.0.1r.
Here is a code from the body of a thread launched from the fileJournalChanged function:
FileConnection file = null;
InputStream is = null;
Image capturedImage = null;
try {
  file = (FileConnection) Connector.open("file://" + m_sImagePath, Connector.READ_WRITE);
  is = file.openInputStream();
  capturedImage = Image.createImage(is);
Well, the Image.createImage(is) throws “OutOfMemory” exception, which seems reasonable, given the 1600x1200 dimensions of the pictures captured by simulator/camera. I understand that unpacked bitmap for such an image occupies around 5MB, which seems to be too big for a system to handle when freeMemory() from java.lang.Runtime reports just over 36MB.
However, I wonder whether there is a way to get around this problem?
Since I am an inexperienced BlackBerry developer, it is quite possible that I am overlooking an alternative way of creating javax.microedition.lcdui.Image object from a 1600x1200 image captured by the BlackBerry’s camera.
Regards,
Aharon.

Steve:
Welcome to the Apple Discussions. Were you able at any time to load directly from your camera into iPhoto? If so, did that stop after running some software updaters?
is there a way to get iPhoto to load these into its library as if it were taking them from a camera?
As long as the image files are not located inside the iPhoto Library folder you can just drag the folder they are in into iPhoto's open Organize window and they will be imported. If they are in multiple folders then each folder will result in a new roll with those photos.
If the files are inside the iPhoto Library folder, move them to the desktop and import from there.

Similar Messages

  • Grabing images from camera & Apply OCR To that image

    Hi,
    I m developing a sample application on OCR. At last visit i m posting the same question.But no one can answer me.
    Here i Create a Vi for grabbing images from camera. The Images are grab & save to the desired folder.But the OCR is not working on that snap image.
    I m  modified some Sample NI VI's for capturing the images & for OCR.
    I m new for labview. I cant understand where is the problem in the VI.
    i also create a character set file for reading the characters using OCR Train
    so please help me to find the solution.
    Attachments:
    Character reading.vi ‏91 KB

    HI.
    Let me give some suggestions regarding your code, (See pictures), and attached an example that you could serve.
    Regards.
    Jonathan Cruz
    CHALLENGER
    K U D O S __ B I E N V E N I D O S
    Attachments:
    Camara OCR.vi ‏42 KB
    11.JPG ‏77 KB
    22.JPG ‏17 KB

  • Capturing images from camera and uploading to sharepoint library automatically.

    Hello Everyone,
    My requirement is to capturing images from camera and uploading to sharepoint library automatically. No manual uploading will take place.
    Please suggest me.
    Thanks,
    Rajesh

    Hi,
    From your description, my understanding is that you want to capturing images from camera and uploading to sharepoint library automatically automatically upload images to SharePoint library.
    You will save images in your local computer after capturing visitors’ image. You could develop a custom timer job to periodically get pictures from the local folder in your computer. Please refer to this article:
    Create and Deploy Custom Timer Job Definition in SharePoint Programatically
    http://www.codeproject.com/Tips/634208/Create-and-Deploy-Custom-Timer-Job-Definition-in-S
    you could upload pictures to your SharePoint from the folder with C# code, please refer to this article:
    How to: Upload a File to a SharePoint Site from a Local Folder
    https://msdn.microsoft.com/en-us/library/office/ms454491%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • 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

  • 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)  

  • Error while creating subsite from site template

    Hi,
    I am getting below error while creating subsite from existing site template .
    Sachin Bhosale

    There must be a duplicate Email field created in any list/library. The cause can be identified by renaming the site template to sitename.cab > extact the cab file > open the manifest file search for email and see where it is associated. Refer
    to the following blog post for more information
    http://sharepointserved.blogspot.com/2012/11/a-duplicate-name-was-found.html
    http://sharepoint.stackexchange.com/questions/11944/error-when-creating-a-site-from-custom-template-a-duplicate-field-name-name
    Cheers,

  • PS: WBS is not flowing for a Material, while creating delivery from Project

    Hi,
    While creating delivery from Project thro CNS0, WBS is not flowing for a Material in delivery, in turn WBS is not flowing in Billing document for same material, in turn not allowing to Post the Billing document to Accounting.
    Error while releasing Billing to the Accounting: Accounting Entry is not generated. Error Message:Assign Condition type
    YMRG in COPA.
    Pls let me know, what can be the reason ?
    Thanks.
    Amit.

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • Error while creating datasource from table MBEWH

    Hi all,
    I am facing an error message while creating datasource from table MBEWH
    "Invalid extract structure template MBEWH of DataSource "; This operation failed, because the template structure quantity fields or currency fields, for example, field LBKUM refer to a different table.
    Can anyone help me that why system is not allowing me to generate generic datasource for table MBEWH to transfer my month wise inventory data.
    thanks and regards.

    Hi Zakir,
          This was comming for classification data... when ever you want to extract some classification related data then we can't create generic datasources  directly.. for that you need  to go with CTBW  ( tcode )  and   create  one datasource...
       so, you need to check that   related table also.. for that  MBEWH table..
        ALL THE CLASSIFICATION RELATED DATASOURCES WE CAN'T CREATE DIRECTLY... JUST LIKE  AUSP table also.. liek this..
    regards
    @jay

  • Error while creating DTP from DS to Infoobject

    Dear All,
    I am getting one error while creating DTP from Datasource to Info object can any one give some suggetion regarding this issue.
    Issue:Enter a valid value
    Msg No:00002
    Procedure: Display the allowed values withF4 and correct your entry,
    Regards,
    Satya

    Hi Satya,
    Trying logging off the system and log in again and try to activate Data source Infoobject and transformation again and try creating DTP by selecting Selecting the source system by pressing F4. I hope it should work.
    I don't find any specific problem or any patch problem with the error you are getting.
    Hope it helps !
    Regards,
    Rose.

  • Error while creating datasource from view ZBSIS_VIEW

    Hi all,
    I could not create  the datasource on the database table BSIS as it said "Invalid extract structure template BSIS of Datasource". I had suggestions that I should create a view and then create the Datasource on it. So I created the view and tried. But still I am facing an error message while creating datasource from custom Database View ZBSIS_VIEW.
    "Invalid extract structure template ZBSIS_VIEW of DataSource"
    Can anyone help on this regard.
    thanks.

    Hi,
    Yes. You need a create a view on tables BSIS, BKPF and T001 as the currency/quantity fields in BSIS have reference fields from the other 2 tables.
    In BSIS, in the currency/quantity fields tab, you have some ref tables and fields. You would need to include these tables and join in the view. You would also need to include the ref fields like WAERS, HWAE2, HWAE3, etc in the view. Then you would be able to create the datasource.

  • Error has come while creating USER from SU01

    Dear Expert,
    I have got typical error while creating user from T-Code SU01.
    Problem is like that : I suppose to  use SU01 and "User Maintanace: Initial Screen
    has come. Now I put the new user name like ABAP2008 or FI2008 (what ever the name thats hardly matter) and click on CREAT button then next screen Maintain User has been appeared.In this screen Address TAB is on and asking for fillup all the required user information.So I have been made all information like :First name /Last name /Tele ph/Fax / email etc etc. After complete this tab when I clicked on next tab is called "LOGON DATA, it has been given a error "Specify a valid country indicator
    Message no. T5027" . Even thogh I didn't able to go to next screen LOGON DATA.Because of these problem I doesn't able to creat a user.
    SAP : IDES version ECC 6
    DB:SQL2005
    OS: Windows 2003 server
    Please do the needfull
    Thanks & Regards
    Pavel

    Hey Pavel,
    Are you using ECC with ISU.. ? I am not sure but I feel your issue can be solved with information provided in SAPnote,
    Note 1046566 - EC70: address-independent telephone number no country.
    The system does not transfer any country from the master data template with the address-independent telephone number.  The system issues the warning message T5027 "Specify a valid country indicator".
    All the best !

  • Password Violation error while creating users from Admin interface

    Guys,
    The Sun Identity Manager system throws policy violation error while creating users from Sun Identity Manager Admin interface.
    Current System:
    1. I have configured TAM Pass-Thru authentication for End User Login Application.
    2. I have an admin user 'testsjimadmin1' who has admin capabilities. testsjimadmin1 user has default SJIM password policy.
    3. I have custom password policies configured for different orgainizatoions
    Problem:
    1. The Sun Identity Manager throws a password policy violation error when 'testsjimadmin1' tries to create an user with valid or invalid password from Sun Identity Manager Admin interface.
    2. If TAM Pass-thru authentication is removed for 'End User Login Application' and Sun Identity Manager default authentication is configured for 'End User Login Application' then testsjimadmin1 was able to create user successfully without any errors.
    Please let me know if any configurations are required to be made on Sun Identity Manager for TAM Pass-Thru authentication so that admin users can create users successfully from admin interface.
    Appreciate your help!!!
    Thanks
    Vijay

    Guys,
    The Sun Identity Manager system throws policy violation error while creating users from Sun Identity Manager Admin interface.
    Current System:
    1. I have configured TAM Pass-Thru authentication for End User Login Application.
    2. I have an admin user 'testsjimadmin1' who has admin capabilities. testsjimadmin1 user has default SJIM password policy.
    3. I have custom password policies configured for different orgainizatoions
    Problem:
    1. The Sun Identity Manager throws a password policy violation error when 'testsjimadmin1' tries to create an user with valid or invalid password from Sun Identity Manager Admin interface.
    2. If TAM Pass-thru authentication is removed for 'End User Login Application' and Sun Identity Manager default authentication is configured for 'End User Login Application' then testsjimadmin1 was able to create user successfully without any errors.
    Please let me know if any configurations are required to be made on Sun Identity Manager for TAM Pass-Thru authentication so that admin users can create users successfully from admin interface.
    Appreciate your help!!!
    Thanks
    Vijay

  • Budget error while creating delivery from sales order

    hi Gurus,
    System is throwing error PB603 "Item 004 WBS element ABC-XXX budget exceeded" while creating delivery from sales order.
    I am picking material from unrestricted plant stock (not in project stock).
    I am also confused as sales order has 3 line items & error shows Item 004 !

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • How receive image from camera with PCI-bus

    Hello all
    Please help
    me.
    I have LV 7.1.1.
    I wont
    watch two and more images from cameras at the same time.
    I have capture
    card (PCI-bus) with 4 video-input.
    What kind
    of data must be transfered from this capture card  to LV?
     With respect
    Aleksandr.

    Hello Aleksandr
    please provide more information, what type of video card do you have?
    Have you configure the card so you can watch an image with MAX?
    I suppose the card has the ability to capture more than one image at a time is that true?, however most of the cards that I know of, have several inputs but you can only display one image at a time, you can swith between them and capture and image from another input, to capture more than one unit at a time you would need to open/close sessions with the instrument/card such that you are switching from one input to another
    vicente

  • Getting Error ORA-00604 While Creating View from front Ent

    Hello All,
    I am getting ORA-00604 while creating view from the front end. And some time I get Maximum cursor open, It is ok amy be I am opening cursors in while loop. While ORA-00604 is giving lots of truble to me. In help it said to contact Oracle service, I dont know how to do that. Help me.

    Please post your view definition including the complete error_message and also the relevant parts of your code with the while loop.

Maybe you are looking for

  • Is MS Word really the best Oracle can come with for designing layouts?

    Hi all, I am returning to XMLP development after first looking at it two years ago. Back then I advised our company not to use it for all report development as MS Word didn't seem robust or flexible enough to generate report layouts. Now I am working

  • HT1782 how do i clean up my iMac

    im wating to clean up some unwanted files and progames on my IMac how do i clean tthis up

  • How to Create an FI document using a BAPI

    Hi, I have a requirement as under(for a report creation): I need get all the Account numbers(from table BSIS) depending on the Posting date(BUDAT) and the Price difference accounts(HKONT) for the previous month(say 1/1 to 31/1). After I get all the d

  • Modifying existing BO Server Installation

    I've found the following articale warning that any modification made to the base install of a server installation will require any subsequent service packs and patches to be reinstalled after modification. The article is filed under XI R2 and XI 3.1

  • How to check Username and Password

    hai in my application i'm navigating from Login page to Home Page .  in login page i have to check for particular user name and password let us say abc and abc.  if the user enters wrong username and password it should redirect to login page. is ther