Raw to varchar2 conversion

Hi guys,
We have a raw datatype column in a table.
We want to convert this into varchar2 type. Is there any direct function available or any other way is there to achive this.
regards
Rajesh.R

Have a look at the builtin utl_raw.cast_to_varchar2(r in raw) function

Similar Messages

  • Problem in converting Long Raw to Varchar2

    Hi
    I need to analyze the contents of a 'Long Raw ' field to proceed further. In an attempt to do that, using the following code, I could not see the data in a readable format.Kindly Help...
    create or replace procedure lr2vc1 (lv_id number) is
    c1 long raw;
    note_varchar2 varchar2(32000);
    begin
    select value into c1 from Test_table where id=lv_id; /*value is the Long Raw field*/
    note_varchar2 := utl_raw.cast_to_varchar2(c1);
    insert into lr2vc (prid,lrvalue) values (lv_id, note_varchar2);
    commit;
    --dbms_output.put_line(c1);
    end;
    Thanks
    Sandeep

    Whats wrong with the answer given here?:
    <br>
    Problem while converting Long Raw data to Varchar2

  • LONG RAW to CLOB Conversion

    I wish to migrate records of a col. FILETYPE (LONG RAW) of existing table to col. DOCTYPE (CLOB) of a new table.
    But the function to_lob() is unable to carry out the required migration. The Error message is : " Inconsistent Data Types expected - binary .... ".
    Moreover LONG RAW to BLOB conversion works fine from a simple INSERT statement but the same fails when insertion is done using a CURSOR.
    Can u guyz help me in doing the same !
    Oracle Version used - 9i
    Regards,
    Chinmay <Infocker>

    You can transfer data from
    LONG to CLOB
    LONG RAW to BLOB only..
    In Oracle9i -- there is a very cool "alter table t modify long_col CLOB" to do
    this as well....
    you could convert a clob to a blob, or a blob to a clob using utl_raw.cast_to_varchar2/raw and doing it 32k at a time.

  • CLOB to VARCHAR2 conversion and limit of 8192 chars

    Hello, I have the folowing code which works on Oracle 10g SE but does not on XE:
    DECLARE
        d1 varchar2(32000);
    BEGIN
        d1 := to_char(substr(MY_FUNC_RETURNING_CLOB, 1, 8192));
    END;This ends with "ORA-06502: PL/SQL: numeric or value error." Only CLOBs shorter then 8192 works... (well the SUBSTR function is there just because of testing the maximum length of CLOB that does not fail).
    Is this my mistake, a bug in XE or some XE limitation (using UTF-8 version of XE)?
    Thanks for any hints!

    Well, it seem that conversion between CLOB and VARCHAR is done within UCS4 or something... Function MY_FUNC_RETURNING_CLOB returns SQL query (for subsequent EXECUTE IMMEDIATE command) and contains only ASCII characters and therefore should be 1char=1byte in UTF-8? I did a following workaround, which works pretty well for me (CLOBs are about 16000 chars long in my case)
    DECLARE
        d1 varchar2(32000);
        c1 varchar2(32000);
        c2 varchar2(32000);
        c3 varchar2(32000);
        c4 varchar2(32000);
    BEGIN
        c1 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 0*8192, 8191));
        c2 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 1*8192, 8191));
        c3 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 2*8192, 8191));
        c4 :=to_char(substr(MY_FUNC_RETURNING_CLOB, 3*8192, 8191));
        d1 := c1 || c2 || c3 || c4;
    END;

  • Seeking solution for RAW to jpeg conversion on 1TB disk[s] of images

    Please read fully
    Greetings,
    I have a bit of a dilemma as most might have as well. I have about
    3.5TB of RAW images in various directories and seeking an automated
    way to convert RAW to jpeg on numerous directories...and go get a
    coffee while the process is working (maybe have a nap or two lol)
    For many months I have searched for a solution that takes the source
    disk (yes disk and not directory by directory) and implements a NEF to
    jpeg conversion placing the destination directory on another hard
    drive or a separate directory keeping the same source directory
    structure. So at the end of the day I would have full sized jpegs and
    PSD's in the same directory structure as the source. That make sense?
    I have been in other forums and asked but the solutions were using the
    typical Photoshop solutions and it does not make a dupe directory
    structure as the source.
    Any solutions? Ideas?
    Thanks,
    D.S. Hathaway

    This is what I'm trying to do. It seems the Image Processor does not handle multiple directories at once.
    MainDrive (source)
    |
    |
    1234_flag_images
    2345_ball_images
    3456_table_images
    etc
    In the directory 1234_flag_images contains
    1234_flag1.nef
    1234_flag2.nef
    1234_flag3.nef
    WIP <---directory Work in Progress contains
    1234_flag1.psd
    1234_flag1.jpg
    What I am seeking is the above source to be converted to jpeg and
    placed onto another dirve/folder/directory with the SAME directory
    tree. It should look like:
    Another Drive/folder/directory etc (destination)
    |
    |
    1234_flag_images
    2345_ball_images
    3456_table_images
    etc
    In the directory 1234_flag_images contains
    1234_flag1.jpg
    1234_flag2.jpg
    1234_flag3.jpg
    WIP <---directory Work in Progress contains
    1234_flag1.psd
    1234_flag1.jpg
    Make sense?
    Isn't there anything out there to handle multiple
    (read 100s) of folders/directories and make a conversion as stated
    above?
    Thanks again,
    d.s.hathaway

  • Plain raw format - DNG conversion

    Dear All,
    Would you guide me regarding to converting plain raw format file to DNG file?
    <definition>
    1. plain raw format file
    - the file is composed of Bayer pixel array. For example, 5M pixel raw file is composed of sequential 2592 x 1920 pixels, each pixel is represented by 2byte value. file size will be 2592*1920*2 bytes. The start pixel may be one of Gr or Gb or R or B
    2. tuning information file
    - the files below may be provided for enhanced DNG raw image processing
    - start pixel information: Gr or Gb or R or B
    - 4channel lens shading correction
    - noise profiling
    - white balance R/B channel gain
    - color correction matrix
    - gamma table
    <what is conversion guide?>
    1. Is there any available program or utility for converting this plain raw format file to DNG?
    2. if not available, how can I achieve the conversion using available toolkit?
    3. any other idea?
    Thanks in advance.

    I don't think that any program exists that will do that.
    You can however use the DNG SDK to do what you want: http://www.adobe.com/support/downloads/dng/dng_sdk.html
    Sandy

  • RAW to DNG conversion.

    Using PS CS5 and Nikon D200, Bridge and PS see the RAW files great. However, I just got a Nikon D7100 and PS does not recognize the RAW files. I downloaded the new DNG converter but my question is, do the RAW files have to be converted in the DNG program first, is it not a plugin for PS? I would think a plugin would work within PS, not have to be completed separately. Thanks.

    Thanks for the responses Kelly and gener7. One video that I watched from Adobe said that the conversion could be accomplished as the files were being imported in Bridge and there is that option but it did not work for me. Everything works great when using the DNG converter program so it just adds another step.  Thanks again.
    Ted

  • Automate RAW to JPEG conversions

    Does anyone know of an easy/simple way to automate RAW conversions to jpeg?
    When I setup an action, it stalls on the RAW file open command and I cannot seem to automate this step.
    I have looked at 3rd party s/w like Irfanview but the output quality seems poor.
    Any tips from anyone gladly received.
    Thanks.

    grwiffen4760 wrote:
    When converting from RAW, can you setup a set of default RAW editor settings that will be applied to each file conversion?
    You can address RAW settings two way.   You can set default ACR settings for each of your cameras.  Open a RAW file from one of your Cameras. Use the Camera profile tab in the ACR Dialog and try out the profiles Adobe supplied for your camera.  When you find the one you like best set that one in the profile tab. Then use the other tabs and make the adjustments you would like to see as your defaults.  When you like what you have set. Set this setup as your cameras default.  Repeat this process using Raw files from you other cameras.
    Now you cam also set RAW settings for you RAW files without creatine any image files for groups of raw files.  IMO the best way to do this is from the Bridge. The bridge shows you thumbnails of your RAW files and I beleive adjust them under its covers by using ACR and you default settings for RAW files without saved ACR settings. What I do in the Bridge is select thumbnails without saved settings in groups that seeem to have simular exposures and open this group in ACR. One I have all the image in ACR I'll adjust one of them and then sync the rest setting to the setting  I just made to the one. Then if some of the thumbnails look like the need a crop I set crop for those one at a time. Finially I'll click on ACR done button. ACR will then record setting for each RAW file either in Sidecar files or in the ACR database.
    When you use an Image Processor Photoshop  script to process your RAW files into RGB Image files the saved ACR settings will be used for those files that have settings and your default settings settings for files that don't have saved settings.

  • Problem with RAW to JPEG conversion

    Hello everyone,
    I have recently switched to shoot my photos in RAW format. I do the usual adjustments in Camera Raw and the hit "Open Image". Next is that I save my image as JPEG with the Maximum Quality. Once I look at my saved JPEG file though I find that most of them have a lot of noise and seem not to reflect any adjustments that I did to the RAW file. What am I doing wrong?

    This is the adjustments in "Basic" and "Detail" including the "Before RAW"
    After that I hit "Open Image" and then saved it without further adjustments as JPEG, Quality 10. The result of the JPEG when I open it from the Photoshop Organizer is this which I find very noisy.
    The disturbing part though is, that the JPEG looks as follows when I search for the JEPG file itself and open it through Picasa viewer. It has way fewer image noise I think.

  • Raw vs VARCHAR2 for sys_guid

    We are running some tests trying to see if there is an issue with defining our PK columns as RAW and using the sys_guid function as the default.
    We cannot see any issue with selecting the value, using it in SQL or returning it in a PL/SQL function and using that returned value in an SQL statement join condition.
    What or where should we be concerned with seeing any type of issue.
    Thanks,

    I've never experienced a problem - Amanda refers to it here
    http://nerd.net.au/40-sql-a-plsql/useful-functions/107-sys-guid
    and talks about it further here
    http://www.nerd.net.au/oracle/29-apex-application-express/general-application/109-4-2-development-standards
    Check out how the package application "Customer tracker" generates IDs.

  • CR2 (RAW) to JPEG Conversion

    Hello and thanks in advance.
    I'm new to using RAW images in iPhoto. I was given a folder of RAW (CR2) images, and I want to convert them to JPEG to conserve disk space. I have no need to GB's of images that are each 15mb in size.
    I've read that iPhoto makes JPEG versions of all RAW images the first time you make a change. But want I want to do is convert all the images to JPEG, then add them to iPhoto and delete the RAW versions. This there a way to do this from within iPhoto? Or does it automatically create a JPEG version of all imports?
    Cheers,
    Josh

    iPhoto can only operate on images that have been imported. So to use iPhoto to do this job you would need to
    Import the Raw
    Process them
    Export the Jepgs
    Trash the pics from iPhoto
    Import the Jpegs you processed.
    Might be less complex to use another app to process the Raws.
    Regards
    TD

  • Suspected bug with RAW  to jpeg conversion

    When clicking done on a RAW image (or double clicking it) in iphoto, why is it that sometimes it works and other times it doesn't?
    It seems to work if you make changes to the image but if you merely want to turn it into a jpeg so that you can export it to something like flickr it doesn't seem to work.
    This means when I drag my images to flickr export it only accepts jpegs so half my album is not publishable to the web - or viewable by anything outside of iphoto.
    Any suggestions?

    This is the adjustments in "Basic" and "Detail" including the "Before RAW"
    After that I hit "Open Image" and then saved it without further adjustments as JPEG, Quality 10. The result of the JPEG when I open it from the Photoshop Organizer is this which I find very noisy.
    The disturbing part though is, that the JPEG looks as follows when I search for the JEPG file itself and open it through Picasa viewer. It has way fewer image noise I think.

  • RAW photos & JPEG conversion

    In iPhoto 4, I can store my RAW images, and, by double clicking, get them to open in Photoshop Elements in RAW mode - which is what I want to do. In iPhoto 5, it seems I can't do this. The instructions are that I should move it to the desk top, then open PSE, then open the image. I tried this, and it would not open. Surely there is a way to do what I want, without going through this trouble.

    iPhoto, yes Aperture, yes.  Read here > iPhoto '11: Edit RAW-format photos
    But the minimum requirements for iPhoto 11 and Aperture are OS X v10.7.5.
    You would have to upgrade to v10.7 Lion in order to run either iPhoto or Aperture.
    Lion can be purchased from Apple Customer Support at 800-767-2775.
    OR, if your Mac meets v10.8 Mountain Lion requirements >  System requirements for OS X Mountain Lion
    You can upgrade directly from v10.6.8 to v10.8 Mountain Lion. iPhoto and Aperture both are compatible with v10.8.
    Instructions for upgrading to Mountain Lion v10.8 >  Apple - Upgrade your Mac to OS X Mountain Lion.

  • Working with Raw-need a conversion and image sizing program

    Shot in Raw with Finepix S100. I need to convert to 16bit Tiff RGB and reduce image size to 4000x3000 for Final cut pro use.   After converting my Raw to 16Bit-Tiff, my images are 5440x4080.   FP does not like anything larger than 4000x3000 .  
    The program one I am currently using came with the camera. It is time consuming, sluggish and refuses to forces me down to 8 bitTiff  when I image size down to 4000x3000.
    Can someone suggest an app or program that can convert to 16 bit-Tiff  and also reduce image size?
    Thanks,
    Sandy

    give iPhoto a try - import the photo, crop to 4X3 and export as kind RAW with a custom size of 4000
    LN

  • Filter in adobe bridge to only select Raw files for DNG conversion

    Here's my problem - I have a new DMC TZ70 camera and Lightroom 5.7 doesn't recognise the .RW2 files. I would need to buy LR6! Perhaps later.
    So I thought I will import via bridge and convert to DNG.
    So I open bridge and select the camera - fine - BUT there are files for the Raw images, the same number of JPEGs and some .bdm, .TDT etc files. (e.g. 3 raw + 7 others).
    I can set up a filter to view only the Raw files when I see what files are there in the card folder in Bridge but when I select "get photos from camera" I can either select them all OR deselect and then I need to MANUALLY select the raw files. There doesn't seem to be a way of setting up a filter in the Downloader screen so that Bridge only selects the Raw files for conversion.
    If I let it select all, Bridge converts the RW2 files to DNG but also brings in the jpgs and other files. I can delete these afterwards but this seems an inefficient way to do it.
    Is there any way to manually select the raw files in the photo downloader screen?
    Advice please, thanks, Mel

    Not sure I follow completely, Mel, but Bridge allows you  to View > Sort > Type... which would allow you, after sorting, to click on the first image with a specific extension, then hold down the Shift key to select the last in  the series and  handle them independent of the other files presented.

Maybe you are looking for

  • Installing CS2 Upgrade on Intel Mac

    I am just about to take the plunge and get an Intel Mac. I'm using CS2 legacy files for a number of customers. I have CS3 full product but the CS2 is an upgrade. In the past I have upgraded from Illustrator 9 (Full Product) but obviously this is not

  • Typesetter quotation marks in Pages"?

    I can't believe there's no automatic way to include typesetter quotation marks (" ") as opposed to typer writer fonts (" ") in Pages documents. Am I missing something or do I have to use the special key combination to get the true quotation marks?

  • Can't get old mac game to play

    I have an old game, Pirates! Gold! for Macintosh. I am running OSX 10.3, and I installed Mac OS9 with the additional disc that came with my mini mac and yet I still cannot get this game to open and run. Other classic apps. such as Sherlock are workin

  • Creating tablespace

    I want to create a tablespace of 90G. oracle did not accept to create a dbf file of 90 G. I had to create 3 data files of 30 G each: create tablespace tbs1 datafile.... alter tablespace tbs1 add datafile .... 1] why Oracle did not accept to create a

  • Problems with router connecting to internet

    Several weeks ago, there was a small blackout for a couple hours. When the power came back on, I could not get an internet connection. After disconnecting the router, and connecting the modem directly to the computer, I have been able to get online.