Image format from RAW image data????

Hi all, here is my problem...
I have an Image object created by copying data from the clipboard. Now, the question is, how can I write this as an image to Database and file? I need the byte[] RAW data for DB and the best suted format for file saving.
can anyone help me???
thanx

Hi all, here is my problem...
I have an Image object created by copying data from the clipboard. Now, the question is, how can I write this as an image to Database and file? I need the byte[] RAW data for DB and the best suted format for file saving.
can anyone help me???
thanx

Similar Messages

  • Conversion of date field format from char to dats

    Hi All,
    one issue with Date field.
    in my internal table i have a date field with type char(10).
    But when I upload the data to database through upload program,  there I have a date field with type "DATS".
    how do I convert and store it in "DATS " format in database.
    please help...

    HI ,
    Try this use  CONVERT_DATE_TO_INTERNAl
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
        date_external                  = "ur date from file
      ACCEPT_INITIAL_DATE            =
    IMPORTING
    DATE_INTERNAL                  =  "( date in dats format )
    EXCEPTIONS
      DATE_EXTERNAL_IS_INVALID       = 1
      OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

  • Storing GUID in CHAR 32 format from RAW 16

    I'm trying to get  Ext Ref No from a table CRMD_SALES (field PO_NUMBER_SOLD) and add it to the extract structure crmt_bw_complaints_i.
    The join should be on the field GUID of the CRMD_SALES table. Unfortunately, neither of guid from the extract structure or table crmd_link will match the GUID from CRMD_SALES table.
    How can I store a GUID from CRMD_SALES or CRMD_LINK table into crmt_bw_complaints_i.-GUID field?
    Reward point Guranteed
    Thanks,
    Anid

    Sorry, I misunderstood your question.
    CRMD_LINK-GUID_SET = CRMD_SALES-GUID.
    Using this join should resolve the issue.
    Hope it helps.
    Regards,
    Kaushal

  • Raw pixel data

    Any suggestions of how to get to a CGImageRef or UIImage from raw pixel data in open gl?
    uint8_t testColor[4 * 480 * 480]; // 4 bytes, RGBA
    glReadPixels(0,0,480,480,GL_RGBA, GLUNSIGNEDBYTE, &testColor);

    i have a feeling someone is going to help me eventually
    This creates an image, but it doesn't look like the one i draw. Any tips on figuring out the CGImageCreate parameters for something in GL_FLOAT raw pixel data. I assume that is where I am going wrong.
    size_t size = 10;
    float testColor[4 * size * size]; // 4 bytes, RGBA
    glReadPixels(0,0,size,size,GL_RGBA, GL_FLOAT, &testColor);
    size_t w = size;
    size_t h = size;
    size_t bitsPerComponent = 32;
    size_t bitsPerPixel = 32;
    size_t bytesPerRow = 4 * w;
    CGDataProviderRef provider = CGDataProviderCreateWithData(NULL, testColor, 4 * 480 * 480, NULL);
    CGBitmapInfo bitmapInfo = kCGBitmapByteOrderDefault;
    CGColorRenderingIntent intent = kCGRenderingIntentDefault;
    CGColorSpaceRef space = CGColorSpaceCreateDeviceRGB();
    CGImageRef img = CGImageCreate(w, h, bitsPerComponent, bitsPerPixel, bytesPerRow, space, bitmapInfo, provider, NULL, NO, intent);
    UIImage* result = UIImage imageWithCGImage:img;
    NSData *imgData = UIImagePNGRepresentation(result);
    imgData writeToFile:@"/Users/alexander/Desktop/test.png" atomically:YES;

  • IPhone SDK: How to create an image from raw data

    Creating a UIImage from some form of bitmap file format is easy, whether you let UIImage load the file itself or create it with an NSData. But what if you have raw bitmap data in memory and you want to create an image?
    In Cocoa NSBitmapImageRep can be created by passing it a pointer to a block of memory and the relevant heigh, width, bit depth etc. information. From that you can easily create an NSImage. There doesn't seem to be anything equivalent on the iPhone. CGImage can be created but it looks like you have to write a CGImageProvider. CGBitmapContextCreate takes a void * to a block of memory. Does it clear that block?
    Is there a good way to do this?

    ElNono wrote:
    You can't do RGB565 on a CGImageRef/CGContextRef. The only 5bpp modes supported are 1555 ARGB or 5551 RGBA. If you just need to display the image, use OpenGL. One of the supported texture formats is RGB565. If you need to save the image then you're going to have to pre-convert it to RGB888.
    hi ElNono , i have test the RGB888 data now , the image can show , but another problem is the image just like serveral picture over lap together , also is blurred , my code is here:
    const size_t width = 1024;
    const size_t height = 768;
    const size_t bitsPerComponent = 8;
    const size_t bitsPerPixel = 32;
    const size_t bytesPerRow = (bitsPerPixel * width)/8;
    CGBitmapInfo bitmapInfo = kCGImageAlphaPremultipliedLast;
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    NSString *imagePath = [[NSBundle mainBundle] pathForResource: @"Test" ofType: @"rgb"];
    NSFileHandle* file = [NSFileHandle fileHandleForReadingAtPath:imagePath];
    NSData* imageData = [file readDataToEndOfFile];
    CGContextRef context = CGBitmapContextCreate((void*)[imageData bytes], width, height, bitsPerComponent, bytesPerRow, colorSpace, bitmapInfo);
    CGImageRef imageRef = CGBitmapContextCreateImage (context);
    UIImage*rawImage = [UIImage imageWithCGImage:imageRef];
    CGColorSpaceRelease(colorSpace);
    CGContextRelease(context);
    CGImageRelease(imageRef);

  • How to change data format from [IMAQ create -- output -- New Image ] to [Unflatten Pixmap VI -- input -- image data]

    hi gays,
    i have two program,
    the first one use  {IMAQ create} to get a image from USB webcam,
    the second one is picture data process which use [Unflatten Pixmap VI] to get a image data from a BMP file.
    Now I want to combine this two program, but data format don't match between  the output of {IMAQ create} and the input of [Unflatten Pixmap VI].
    My LabVIEW version is 2009
    What can i do??

    Do you have VDM? Did you try "Image to array"?

  • Help! Read raw Image data from a file and display on the JPanel or JFrame.

    PLEASE HELP, I want to Read Binary(Raw Image)data (16 bit integer) from a file and display on the JPanel or JFrame.

    Hey,
    I need to do the same thing. Did you find a way to do that?
    Could you sent me the code?
    It's urgent, please.
    My e-mail is [email protected]

  • Read Binary(raw Image) data from a file

    Hi
    PLEASE HELP, I want to Read Binary(Raw Image)data (16 bit integer) from a file and display on the JPanel or JFrame.

    Hi, you'll need to use MemoryImageSource.
    You read each RGB triple and add it to a pixel[].
    Heres the roughg idea.
    Hope that helps.
    Harley.
    int width,height;
    int[] pixels = new int[width*height];
    while(!fileDone)
    for(int i=0; i<(width*height) i++){
    int rgb = inputStream.readInt();
    pixels[i] = rgb;
    DirectColorModel colorModel = new DirectColorModel(16,0xff00,0x00ff,0x00ff);
    MemoryImageSource memImage = new MemoryImageSource(width,height,pixels,0,width));

  • Using image data read out from a file

    Hi,
    Having used the GetBitmapFromFileEx(), GetBitmapInfoEx() to acquire the necessary image data (most of them is the .png format), then using the FileToArray() to put the image data in my own binary file, e.g., "mypicture.dat". My idea is that whenever need to use the image, I can read out it from mypicture.dat and then display it on a pcture control.  But when loading the image data to the memory, I have no idea to map the image data buffer to an image resource, which can let to acquire a bitmap ID.  Because from the  cvi's image processing function lists, it seems that must through such as  the GetBitmapFromFileEx(), GetBitmapFromFile() to acquire the image data buffer and the bitmap ID, then using SetCtrlBitmap() to diplay it. Is there any way to resolve the problem? Thanks.
    David 

    Well, to read and write raw data file informations from a PNG image you must adhere to this standard. As a source of informations you may take a look to this Wikipedia page and to the links in this page from the PNG Home site.
    So the problem is: does your application worth the effort to study this documentation?
    Edit: FYI part of this job has been already made in CVI by Guillaume Dargaud for his ReadSavePNG instrument driver. It's been a long time since I have used this instrument, as I/O operations on PNG files have been integrated into CVI since release 8 and support for JPEG files in release 7 or so. Nevertheless I saw functions in that instrument for accessing raw data in a PNG file so you may find them useful for your needs.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Image Date error on importing TIFF images from Disk

    I have thousands of high quality (~100 Mb each) images in 20 folders on a 1 Tb hard drive. I have been using Bridge to manage the images, adding some metadata such as keywords and copyright data. I am considering importing all these images into Aperture and using it as the primary image management tool.
    But I am concerned about an apparent bug in the way Aperture handles the "image date and time".
    In Bridge (and GraphicConverter), the "image date" field is correct, directly from my CFV digital back on the camera and inline with the time of day the shot was taken (e.g. sunrise image at 6am). When I import the image into Aperture, the time gets shifted by 14 hours.
    For example, an image in Bridge that correctly shows Date Created as 10/05/2009 7:36am gets distorted to 10/05/2009 9:36pm, exactly 14 hours later than the correct time. It was taken at 7:30 in the morning but, in Aperture, looks like it was taken in the late evening. It does not look like a time zone issue as the image was taken in the same time zone as my Mac Pro is set to.
    I have tried deleting the masters and re-importing them with GMT +2 and GMT -12 in the two time zone adjustment fields. This gets the right time into the Image Date field but then the image has the wrong time zone data in the "Camera Time Zone" and "Picture Time Zone" fields.
    I have tried running MetaData > Update Date and Time (with Master files ON) but it comes back with an error "no master files were adjusted ... because they have a format that does not permit modification".
    I have tried running MetaData > Update Date and Time (with Master files OFF). It appears to work but I assume that the underlying file in the Aperture library still has the incorrect time.
    Have others faced this problem? Is there a solution? Is it a known bug that Apple might fix one day?
    Regards
    Peter

    I am seeing a very similar problem when importing TIFF files back to Aperture.
    This is what I do and what I see:
    1. I import RAW images from my camera into Aperture. They show the correct date and time.
    2. I open an RAW image in Photoshop (CS4) directly from the finder. The image inside Photoshop (file/info) shows the correct date and time.
    3. After editing I save my image as 16bit TIFF and it still shows correct date and time.
    4. I import the new TIFF back into Aperture. The time is shifted back 15 hrs!
    I can then go in and Metadata/Update Date and Time (no masters) and it works well, but it is a pain to do on each image I process.
    In all cases camera and image timezone is set to US Pacific as it should be.
    To me this seems like Aperture is somehow miss-interpreting the timezone when reimporting TIFFs.
    I have not tried importing JPEGs or PSDs back but I will and will report back...

  • How do I load a picture from the clipboard (either Windows clipboard or Labview clipboard) into image data that can then be processed in Labview?

    I want to load a picture from the Windows clipboard (and if not possible, then from the Labview clipboard) into actual numerical image data so that it can be processed in lab view. When I'm at the main screen where I can add controls, I see a section of controls called "Vision" in the tool bar where all the different controls can can be added from. When I go to the control called "Image" and put that on my form, and then look at the flowchart/blockdiagram programing window to see what inputs and outputs it has, I only see one output, and no inputs. And when I right click on it, I see NO way to load an image into the Image control. PLEASE help me.
    Message Edited by Ben321 on 11-09-2008 04:32 PM

    Hi Ben,
    National Instruments has an image processing software called Vision and although I am not completely sure, I think the controls that you found in the control pallet are used in conjunction with the software. Depending on what kind of image processing you want to conduct in LabVIEW, you might want to consider purchasing that product.
    If cost is an issue, there are functions in LabVIEW which allows you to take in image files and process them. However, please keep in mind that the capabilities are limited.
    Images should be loaded onto LabVIEW not via the clipboard but through loading it from folders or directories. (There might be a way to and so if you find a way please let me know! I would like to know myself =D) If you open the function pallet by right clicking on the block diagram, in the programming folder you should find a directory called "Graphic and Sound". There, you'll find functions in which allows you to process images.
     In the "Graphic Type" directory there should be a function called Read JPEG file.vi. There are also others which allows you to read png and bmp files. Please note that there are functions which write as well. Set a file path on the block diagram and inside the "Grahic and Sound" there is a "Picture Function" directory and inside there, there should be a function called "Draw Flattened Pixmap.vi" That changes the image into a format where you can process on LabVIEW. Inside the "Picture Function" directory there are several functions which allows you to process the specified image. Play around with it and see how it goes. And don't forget to Write the file in the end to save any changes.
    I hope this helps
    National Instruments Japan
    Applications Engineer Taiki Hoshi

  • Import from Designer crashes with IMAGE data type

    Hello,
    I'd like to report an issue with Data Modeler while importing from Oracle Designer. If you consider this a bug, please let me know if I need to do anything else to request a fix for it.
    I've used the import > Oracle Designer Model tool to import an application model. The import runs fine for a while, then crashes with a message "There are errors in import - check log file".
    The application to be imported has 509 domains, 963 entities to import.
    The summary info displayed after the import (when I close the error message pop up) is:
    All statements: 1472
    Imported statements: 538
    Failed statements: 0
    Not recognized statements: 934
    The log file has the lines below:
    2011-04-28 10:55:46,505 [Thread-8] ERROR XMLTransformationManager - Unable to load object from XML: C:\Users\Beatriz\Documents\ODTUG\2011\SDDM designs\GAME\GAME\rel\0EEBE15E-D9EFB22E4D6B\subviews\02A206F8-0C6C-0DF9-E643-5919DBCB895A.xml
    java.io.FileNotFoundException: C:\Users\Beatriz\Documents\ODTUG\2011\SDDM designs\GAME\GAME\rel\0EEBE15E-D9EFB22E4D6B\subviews\02A206F8-0C6C-0DF9-E643-5919DBCB895A.xml (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.transformToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLTransformationManager.transformFromXMLToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPart(Unknown Source)
         at oracle.dbtools.crest.model.design.Design.openDesign(Unknown Source)
         at oracle.dbtools.crest.swingui.ControllerApplication$Recent$1.run(Unknown Source)
    2011-04-28 11:03:44,114 [Thread-12] WARN ODODomain - ODOType.initStructuredTypeAttributes() - Unable to find Logical DataType for: IMAGE
    2011-04-28 11:03:46,532 [Thread-12] ERROR ODExtractionHandler - Error during import from Designer Repository
    java.sql.SQLException: Numeric Overflow
         at oracle.jdbc.driver.NumberCommonAccessor.throwOverflow(NumberCommonAccessor.java:4380)
         at oracle.jdbc.driver.NumberCommonAccessor.getInt(NumberCommonAccessor.java:111)
         at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:928)
         at oracle.jdbc.driver.OracleResultSet.getInt(OracleResultSet.java:434)
         at oracle.dbtools.crest.imports.oracledesigner.logical.ODOEntity.generate(Unknown Source)
         at oracle.dbtools.crest.imports.oracledesigner.ODExtractionHandler.generateDesign(Unknown Source)
         at oracle.dbtools.crest.imports.oracledesigner.ODExtractionController$Runner.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:619)
    I see the issue with the IMAGE data type in the log. The model to be imported does have domains and entities using this data type. The domain actually did get imported, but it shows as "Unknown" logical type, even though there is an Image type available in the Data Modeler type list. None of the entities using IMAGE got imported.
    Please let me know if you can provide a fix or workaround for this (other than changing the format in Designer).
    Thank you,
    Beatriz.

    Hello Beatriz,
    definitely this is a bug. The problem with entities is not IMAGE data type it's supported there (it's overlooked for domains). The problem is volume information - Initial, Maximum, Average, Growth rate. No workaround for that.
    Domain can be changed manually if it's just one affected.
    Philip

  • Image date/time format for import naming

    When naming images with the image date & time during import, it uses the format of YYYY-MM-DD HHMMSSAP
    Is it possible to reconfigure this so
    1) the space in between the date and time is gone
    2) the hyphens in the date are gone
    3) it uses 24 hour time not am/pm?
    I didn't see anything in the preferences, nor did I see anything appropriate in the plist.
    Unfortunately using that format and then exporting an image from it for the web leaves it with an ugly file name that needs manual editing - I hate seeing URLs with a %20 in them because of spaces in file names.
    Chris

    Although I agree that I would like more ability to customize the date and time format (Have you seen the renaming feature in Graphic Converter? It's great!), there is a quick workaround for at least eliminating the space in the name:
    1. Open the name format editing window by selecting Edit from the name format pull-down.
    2. Select Image Date/Time.
    3. Look in the Format field. See how the two ellipses with Date and Time are separated by a little space? That's actually a space character and can be edited.
    4. Put the cursor in that field and replace the space with whatever character you want (like _ for instance).
    5. Now filenames will look like: 2006-04-03_121212PM which is a bit better.
    6. And Aperture very cooly remembers this edit, so on the net import you only have to select Image Date/Time from the pull-down and you still have you edit.
    Now, what I want to do is get rid of the -'s in the date and have the time be 24hour format. Sequential and unique names that are as short as possible!
    Will
    Late 2005 Dual 2.3 GHz PowerMac G5   Mac OS X (10.4.6)  

  • RAW image date not exporting

    Hi there
    Currently I shoot everything as JPG, but would like to start using RAW on my Canon 300D. I have done a few trials, and find one thing perplexing – if I shoot in RAW the image date shows up in Aperture. When I export and add the exported JPG to my iView catalog, no Capture Date (image date equivalent) shows up. When I do the exact same steps after shooting in JPG, the Capture Date appears without any problem.
    Is there a way to have the image date added to the metadata of the exported image?
    Hannes

    I'm not sure about this but the problem may be that there are different "flavors" of EXIF data. I believe there's a basic set of data that all camera manufactures have agreed to and then there's custom EXIF data specific to a camera, lens, strobe, or manufacturer.
    It may be that Apple has chosen to only support the generic flavor(s) of data while ignoring the custom ones. I think that's why cell phone syncing with Address Book only gets some data to the phone. Pictures, groups, and the like are probably different for every phone and Apple decided not to support it. But I don't know that with certainty.
    If you want to see what data is actually in the original and the exported files download a free copy of ExifTool by Phil Harvey from http://www.sno.phy.queensu.ca/~phil/exiftool/
    It's a great tool and shows me more data for my Cannon camera's images than Canon's own software does.
    MacBook Pro 17" (with crappy screen)   Mac OS X (10.4.8)  

  • Image Date Format to show parts of seconds

    Hello All,
    Does anyone know if is possible to change the format of the Image Date field. My D2X is can several images in a second. The format in the List shows the existing format of MMDDYY hhmmss but no parts of a second yet I belive that parts of seconds are in the data. For example a tiff sent Photoshop and named by date contains 1/10 seconds.
    Thanks
    Dick

    Hmmm.... Not sure why the format was ignored when I selected SYSTIMESTAMP... Try this instead
    SCOTT @ hp92 Local> create table ts( col1 timestamp );
    Table created.
    SCOTT @ hp92 Local> insert into ts values( systimestamp );
    1 row created.
    SCOTT @ hp92 Local> select col1 from ts;
    COL1
    2005-09-12
    SCOTT @ hp92 Local> alter session set NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD HH24:MI:SS.FF';
    Session altered.
    SCOTT @ hp92 Local> select col1 from ts;
    COL1
    2005-09-12 16:47:07.840000Anyone know why SYSTIMESTAMP didn't obey the NLS_TIMESTAMP_FORMAT setting?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • Is There A Way To Allow Customers To Post Commentary To My Website?

    For example, a customer wants to praise my work on a recent job. Is there an interactive widget or something that may open a form for the customer to post without me being involved? I don't mean a survey - I hate those.

  • Php/MySQL Repeated region which doen't include the last item?

    Hi, I hope somebody can help me with this. I use php/MySQL. I need t create a repeated region which doen't include the last item (post) added to the table. Does somebody know how to establish this?

  • How to prepare to get good knowledge in SAP-CRM

    Hi Experts,                  I recently completed my MBA and i would like to start my career as a CRM functional consultant. Give me suggestions on how to prepare and how to get expertise in SAP CRM. THANK YOU.....

  • WCF net.tcp binding Opentimeout not firing

    I have a WCF service with net.tcp endpoint. I have been using reliable session. In one of our production scenario, the web server was down and in this case the client systems was trying to establish a connection with the service. The clients were stu

  • Gatekeeper and FXO

    Is possible to register a c2600 with FXO ports to a gatekeeper ? When I do "sh gatekeeper endpoints" the gatekeeper shows the registration BUT whithout the numbers of c2600 pots Although I can register the same router with the same configuration usin