Converter via trigger from blob to ordimage

Hi i make trigger for convertion blob to ordimage but when i execute it i got errors what should i do to fix this ?
create or replace
TRIGGER obrazy.dodanie_id23233
AFTER INSERT OR UPDATE ON fotki
FOR EACH ROW
BEGIN
INSERT INTO FOTKIORD (FOTKAID1, FOTKA1)
     VALUES (:NEW.fotkaid, ORDSYS.SI_STILLIMAGE(:NEW.fotka));
END;
Warning: oci_execute(): ORA-29400: data cartridge error IMG-00701: unable to set the properties of an empty image ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 75 ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 65 ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 29 ORA-06512: at "ORDSYS.ORDIMG_PKG", line 33 ORA-06512: at "ORDSYS.ORDIMAGE", line 945 ORA-06512: at "ORDSYS.SI_STILLIMAGE", line 58 ORA-06512: at "OBRAZY.DODANIE_ID23233", line 2 ORA-04088: error during execution of trigger 'OBRAZY.DODANIE_ID23233' in C:\Program Files (x86)\Zend\Apache2\htdocs\upload.php on line 45

994229 wrote:
I created trigger and it works fine but for si_stillimag i cant why ???? Works fine for me:
SQL> select  *
  2    from  v$version
  3  /
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL> create table fotki(
  2                     fotkaid number not null,
  3                     fotka blob,
  4                     constraint fotki_pk primary key(fotkaid)
  5                    )
  6  /
Table created.
SQL> create table fotkiord(
  2                        fotkaid1 number not null,
  3                        fotka ordsys.si_stillimage
  4                       )
  5    segment creation immediate
  6  /
Table created.
SQL> create or replace
  2    trigger fotki_aiur
  3      after insert
  4         or update
  5      on fotki
  6      for each row
  7      begin
  8          insert
  9            into fotkiord
10            values(
11                   :new.fotkaid,
12                   case
13                     when :new.fotka is null then null
14                     when dbms_lob.compare(:new.fotka,empty_blob()) = 0 then null
15                     else ordsys.si_stillimage(:new.fotka)
16                   end
17                  );
18  end;
19  /
Trigger created.
SQL> -- NULL fotka
SQL> insert
  2    into fotki
  3    values(
  4           1,
  5           null
  6          )
  7  /
1 row created.
SQL> -- empty_blob() fotka
SQL> insert
  2    into fotki
  3    values(
  4           2,
  5           null
  6          )
  7  /
1 row created.
SQL> -- actual image fotka
SQL> DECLARE
  2      v_blob blob;
  3      v_bfile BFILE := BFILENAME('TEMP','HONDA CR-V.jpg');
  4  BEGIN
  5      DBMS_LOB.CREATETEMPORARY(v_blob,TRUE);
  6      DBMS_LOB.fileopen(v_bfile,DBMS_LOB.file_readonly);
  7      DBMS_LOB.LOADFROMFILE(v_blob,v_bfile,DBMS_LOB.GETLENGTH(v_bfile));
  8      DBMS_LOB.FILECLOSE(v_bfile);
  9      INSERT
10        INTO FOTKI
11        VALUES(3,v_blob);
12      DBMS_LOB.FREETEMPORARY(v_blob);
13  END;
14  /
PL/SQL procedure successfully completed.
SQL> select  *
  2    from  fotki
  3  /
   FOTKAID
FOTKA
         1
         2
         3
FFD8FFE000104A46494600010101006000600000FFDB004300020101020101020202020202020203
0503030303030604040305070607070706070708090B0908080A0807070A0D0A0A0B0C0C0C0C0709
   FOTKAID
FOTKA
SQL> select  *
  2    from  fotkiord
  3  /
  FOTKAID1
FOTKA(CONTENT_SI(LOCALDATA, SRCTYPE, SRCLOCATION, SRCNAME, UPDATETIME, LOCAL), C
         1
         2
         3
SI_STILLIMAGE(ORDSOURCE('FFD8FFE000104A46494600010101006000600000FFDB00430002010
10201010202020202020202030503030303030604040305070607070706070708090B0908080A080
  FOTKAID1
FOTKA(CONTENT_SI(LOCALDATA, SRCTYPE, SRCLOCATION, SRCNAME, UPDATETIME, LOCAL), C
7070A0D0A0A0B0C0C0C0C0709', NULL, NULL, NULL, '05-MAY-13', 1), 126992, 'JFIF', 6
48, 1152, 'image/jpeg', '24BITRGB', 'JPEG', NULL, NULL, NULL, NULL, NULL, NULL)
SQL>SY.

Similar Messages

  • Automatic date converting via-trigger

    Hi all!
    I'd like to know if there's a way to set triggers on tables with date-fields that can:
    1. automatically convert the date from (e.g) 01/10/2005 to 01-oct-2005 00:00:00 AM on every INSERT and UPDATE on that column
    2. automatically convert the date from (e.g) 01-oct-2005 00:00:00 AM to 01/10/2005 on every SELECT on that column
    3. get only the timetable from that field and so on...
    using Oracle 9i.
    Thanx a lot!

    The trigger can't help you here. You should think of changing the settings of your
    session or using to_date() function:
    SQL> create table t (date# date);
    Table created.
    SQL> insert into t values('01/28/2005');
    insert into t values('01/28/2005')
    ERROR at line 1:
    ORA-01843: not a valid month
    SQL> insert into t values(to_date('01/28/2005','MM/DD/YYYY'));
    1 row created.
    SQL> alter session set nls_date_format = 'MM/DD/YYYY';
    Session altered.
    SQL> insert into t values('01/28/2005');
    1 row created.Rgds.

  • Function convertion from blob to clob

    Plesae need help,to make function convert from blob to clob
    i have function but not work when coulmn of blob is vey large
    =========================================================================================
    CREATE OR REPLACE PACKAGE BODY "SHB_PACKAGE"
    AS
    FUNCTION blob2clob (l_blob BLOB)
    RETURN CLOB
    IS
    l_clob CLOB;
    l_src_offset NUMBER;
    l_dest_offset NUMBER;
    l_blob_csid NUMBER := DBMS_LOB.default_csid;
    v_lang_context NUMBER := DBMS_LOB.default_lang_ctx;
    l_warning NUMBER;
    l_amount NUMBER := dbms_lob.lobmaxsize;
    BEGIN
    IF l_blob is null
    THEN
    return null;
    ELSE
    DBMS_LOB.createtemporary (l_clob, TRUE);
    l_src_offset := 1;
    l_dest_offset := 1;
    l_amount := NVL(DBMS_LOB.getlength (l_blob),0);
    DBMS_LOB.converttoclob (l_clob,
    l_blob,
    l_amount,
    l_src_offset,
    l_dest_offset,
    0,
    v_lang_context,
    l_warning
    RETURN l_clob;
    END IF;
    END;
    END SHB_package;

    thanks,function is working fine
    issue duo to i used under informatice and bug in informatica
    Edited by: user8929623 on Jan 17, 2010 1:39 AM

  • How to cast a BLOB to OrdImage

    Hi,
    How can I cast or convert a BLOB to OrdImage? For example,
    <import...>
    public class ConvertBlobToOrdImage {
    public static void main(String args[]) throws Exception {
    // Load the Oracle JDBC driver:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Connect to the database:
    Connection conn =
    DriverManager.getConnection(<"Your database connection">);
    conn.setAutoCommit(false);
    // Create a Statement:
    Statement stmt = conn.createStatement();
    String query = "SELECT blob FROM image_t where image_id = 1";
    OracleResultSet rset = (OracleResultSet) stmt.executeQuery(query);
    rset.next();
    OrdImage imageProxy = (OrdImage) rset.getCustomDatum(1, OrdImage.getFactory()); // <-- java.lang.ClassCastException: oracle.sql.BLOB
    rset.close();
    int height = imageProxy.getHeight();
    int width = imageProxy.getWidth();
    System.out.println("Image Dimension: " + height + " x " + width);
    System.out.println("Image Mime Type: " + imageProxy.getMimeType());
    TIA,
    Henry

    xwindy wrote:
    Does anyone knows how to cast a HashMap to HashMap<String, Object>?
    the session.getAttribute return only a HashMapthere is no way to do this safely
    you can use this annotation to suppress unchecked warnings
    @SuppressWarnings("unchecked")

  • Getting issue while downloading 4 to 5 gb file from blob storage.

    Hi i have to download a file from blob storage upto 3 to 5 gb .
    Below is my code:
    Label lblfilename = (Label)row.FindControl("lblGrid_filename");
        Label lblfilesize = (Label)row.FindControl("lblGrid_hidfileSize");
        string downloadfile = lblfilename.Text.ToString();
       // DownloadFileFromBlob(downloadfile, CONTAINER, ACCOUNTKEY);
        AccountFileTransfer = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=" + ACCOUNTNAME + ";AccountKey=" + ACCOUNTKEY);
        if (AccountFileTransfer != null)
            BlobClientFileTransfer = AccountFileTransfer.CreateCloudBlobClient();
            ContainerFileTransfer = BlobClientFileTransfer.GetContainerReference(CONTAINER);
            ContainerFileTransfer.CreateIfNotExist();
            BlobRequestOptions options = new BlobRequestOptions();
            options.Timeout = new TimeSpan(0, 180, 0);
        var data = Regex.Match(lblfilesize.Text.ToString(), @"\d+").Value;
        int value32;
        Int64 value64;
        var blobSize = 0L;
        var blockSize = 0L;
        var offset = 0L;
        if (int.TryParse(data, out value32))
            blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        else if (Int64.TryParse(data, out value64))
            blobSize = Convert.ToInt64(lblfilesize.Text.ToString());
        var blob = ContainerFileTransfer.GetBlockBlobReference(downloadfile);
        var sasUrl = blob.Uri.AbsoluteUri;
        CloudBlockBlob blockBlob = new CloudBlockBlob(sasUrl);
        //blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        blockSize = 5 * 1024 * 1024;
        Response.Clear();
        Response.ContentType = "APPLICATION/OCTET-STREAM";
        System.String disHeader = "Attachment; Filename=\"" + blockBlob.Name + "\"";
        //Response.AppendHeader("Content-Disposition", disHeader);
        for (offset = 0; offset < blobSize; offset += blockSize)
            using (var blobStream = blockBlob.OpenRead())
                if ((offset + blockSize) > blobSize)
                    blockSize = (blobSize - offset);
                byte[] buffer = new byte[blockSize];
                blobStream.Read(buffer, 0, buffer.Length);
                Response.BinaryWrite(buffer);
                Response.Flush();
        Response.End();
    SNAPSHOT of error:
    Pawan

    Hi Will thanks per the reply
    I have make some changes in the code and now i am using the v4.0.30319 azure storage for downloading and able to download a file upto 3.5 GB. Now the problem is that each file size is showing 0 KB.
    Here is my code and snapshot:
      Button btndownloadrow = (Button)sender;
        GridViewRow row = (GridViewRow)btndownloadrow.NamingContainer;
        Label lblfilename = (Label)row.FindControl("lblGrid_filename");
        Label lblfilesize = (Label)row.FindControl("lblGrid_hidfileSize");
        string downloadfile = lblfilename.Text.ToString();
        CloudStorageAccount AccountFileTransfer = CloudStorageAccount.Parse("DefaultEndpointsProtocol=http;AccountName=" + ACCOUNTNAME + ";AccountKey=" + ACCOUNTKEY);
        // Create the blob client.
        CloudBlobClient BlobClientFileTransfer = AccountFileTransfer.CreateCloudBlobClient();
        // Retrieve reference to a previously created container.
        CloudBlobContainer ContainerFileTransfer = BlobClientFileTransfer.GetContainerReference("filetransfer");
        if (AccountFileTransfer != null)
            BlobClientFileTransfer = AccountFileTransfer.CreateCloudBlobClient();
            CloudBlockBlob pageBlob = ContainerFileTransfer.GetBlockBlobReference(CONTAINER);
            ContainerFileTransfer.CreateIfNotExists();
            BlobRequestOptions options = new BlobRequestOptions();
            options.ServerTimeout= new TimeSpan(0, 180, 0);
        var data = Regex.Match(lblfilesize.Text.ToString(), @"\d+").Value;
        int value32;
        Int64 value64;
        var blobSize = 0L;
        var blockSize = 0L;
        var offset = 0L;
        if (int.TryParse(data, out value32))
            blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        else if (Int64.TryParse(data, out value64))
            blobSize = Convert.ToInt64(lblfilesize.Text.ToString());
        CloudBlockBlob blob = ContainerFileTransfer.GetBlockBlobReference(downloadfile);
        var sasUrl = blob.Uri;
        CloudBlockBlob blockBlob = new CloudBlockBlob(sasUrl);
        //blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        blockSize = 4 * 1024 * 1024;
        Response.Clear();
        Response.ContentType = "APPLICATION/OCTET-STREAM";
        System.String disHeader = "Attachment; Filename=\"" + blockBlob.Name + "\"";
        Response.AppendHeader("Content-Disposition", disHeader);
       // blob.DownloadToStream(Response.OutputStream);
       // byte[] bytes = new byte[blockSize];
        for (offset = 0; offset < blobSize; offset += blockSize)
            using (var blobStream = blockBlob.OpenRead())
                if ((offset + blockSize) > blobSize)
                    blockSize = (blobSize - offset);
            byte[] buffer = new byte[blockSize];
                blobStream.Read(buffer, 0, buffer.Length);
                Response.BinaryWrite(buffer);
                Response.Flush();
        Response.End();
    SNAPSOT:
    Please suggest me if i am missing any logic.
    Pawan

  • Display data from BLOB column.

    Hi All,
    I want to display data from blob datatype field, which contains HTML and GIF both files.
    If I set it's property from file format IMAGE then i get data only gif.
    if anybody have answer plz revert back...
    awaiting...
    Juned

    Hi Juned
    What I suggest is that you may have overlapping fields. One to show HTML and other to show GIF. You need to add one more column to your table in order identify if the BLOB is GIF or HTML.
    In the Format Trigger of each of these two fields, inspect the value of flag column and hide one field if the datatype is not its type.
    For instance, if flag field is 0 then hide Image field and show HTML field. If flag field is 1 then show Image field and hide HTML field.
    Regards
    Sripathy

  • How can I open different binary files from BLOB column ?

    If we store some type of binary file (XLS, DOC, PDF, EML and so on, not only pictures) in BLOB column how can I show the different contents? We use designer and forms 9i with PL/SQL.
    How can I copy the files from BLOB to file in a directory or how can I pass BLOB's content to the proper application directly to open it?

    The mime type is just a string as explained above (e.g. application/pdf...). There are lot of samples here and on metalink.
    E.g. add a column mime_type varchar(30) to your blob table. Create a procedure similar to the following:
    PROCEDURE getblob
    (P_FILE IN VARCHAR2
    IS
    vblob blob;
    vmime_type myblobs.mime_type%type;
    length number;
    begin
         select document, mime_type into vblob,vmime_type from myblobs where docname = p_file;
         length := dbms_lob.getlength(vblob);
         if length = 0 or vblob is null then
         htp.p('Document not available yet.');
         else
         owa_util.mime_header(vmime_type);
         htp.p('Content-Length: ' || dbms_lob.getlength(vblob));
         owa_util.http_header_close;
         wpg_docload.download_file(vblob);                
         end if;
    exception
         when others then
         htp.p(sqlerrm);
    END;
    Create a DAD on your application server (refer to documentation on how to create a DAD).
    Display the blob from forms (e.g. on a when-button-pressed trigger):
    web.show_document('http://myserver:port/DAD/getblob?p_file=myfilename','_blank');
    For storing blobs in a directory on your db server take a look at the dbms_lob package.
    For storing blobs in a directory on your app server take a look at WebUtil available on OTN.
    HTH
    Gerald Krieger

  • When I converted a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How can I solve this problem?

    When I tried to convert a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How do I solve this problem?  I don't know how to change it from Read Only.

    Dear Sara
    Thank you very much for sending the converted file.  Yes, I am able to edit it - that will be very useful to me and I appreciate your help.
    Referring to your previous message when you said you'd converted via Acrobat and not Acrobat.com, I'm converting via Acrobat.com because that's the only option that is shown (how do I convert via Acrobat? - perhaps that would be more successful).  I'm using the Export PDF website, and the OCR is enabled to "Recognize text in English UK".  However, I've just tried converting a different LPA pdf form, this time for Health & Welfare https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/245571/LPA114_He alth_welfare_LPA.pdf and again I have the same problem as before.  I've altered it from "Read only" and thought I'd then be able to enter text, but "Drawing Tools" is shown in the pane and I'm unable to enter anything onto the form - everything appears to be in images.  Also, the lettering on the heading of' page 1 has become jumbled, with the word "Public" overlaying the word "Guardian."  Any suggestions as to what it is I'm doing wrong would be welcome - I don't like to be beaten!
    Regards,
    Judith.

  • Sender File Adapter  not able to get file via FTP from an external system

    Hi,
    I have a Sender File Adapter using FTP which polls a server every 10 seconds looking for a file ".xml".  The adapter will connect and pick up the waiting file, but sometimes the adapter not able to get file via FTP from an external system. The file is on the server, but despite the polling, the adapter does not pick up it. There is no return error.
    The connect mode is Permanently and the transfer mode is Binary.
    Can you help me?
    Thanks.
    T.

    Hi Teresa,
    does this case appears with a file size higher the others?
    Personally, I do not recommend to have a polling under 1min.
    10s could be too just, if the file is not small and/or if the file server is far (several kilometers) to where the Adapter Engine is, and/or this file server is beside a firewall. Do not forget also that, with previous points, you could have like a conflict, betwen the 1st polling and the 2nd polling, if in less 10s PI adapter has not enough time: to connect to the FTP server (several Km), find the file (perhaps among 100 other files in the directory), go back to the file to Adapter Engine server (several Km again), convert your file to XML message (with a complex Content Conversion), then check the XML structure, and when all that is done, return back to FTP server (several Km), to archive the source file... Well It's my understanding of a FTP exchange with FILE adapter...
    If you really need a 10s polling, that's mean your have a pseudo real time interface. In that case, in my mind file should not be used! but we should use a Web service, JDBC JMS (any exchange without a physical object like a file). For me, it's a non-sens to have a file in that case.
    regards.
    mickael

  • Hello! I have the Acrobat XI test version installed, got the registration Mail and confirmed it. When i have the program opened and try to convert the file from a pdf to a word and press the convert button, it shows a the message "application failed" (in

    Hello! I have the Acrobat XI test version installed, got the registration Mail and confirmed it. When i have the program opened and try to convert the file from a pdf to a word and press the convert button, it shows a the message "application failed" (in german "Fehler bei der Anmeldung"). I hope have explained the issue on the right way with my bad english. Do you have a solution for it?? Best regards, Marcus Wenk

    yes, you are right. it is the adobe reader via exportPDF. but it should be the acrobat. it was written on the internetpage...

  • Convert a movie from Quicktime to MPEG4 in MPEG Streamclip

    I want to convert a movie from Quicktime (.mov) which I created in Final Cut Express to MPEG4 in MPEG Streamclip to be able to see it on my Samsung TV. The problem is that the uncompressed movie, comverted only from Quicktome to MPEG 4, stops almost every moment on my Samsung TV. I have connected an external harddrive in NTFS there via USB 2.0 (Samsung TV cannot play movies in HFS etc.). The uncompressed movies are bigger than 4GB in Quicktime.
    I got the following information from Samsung (in German):
    "Sie berichten, dass Filme zum Laden stoppen, die auf Ihrem MacBook Pro flüssig laufen. Bitte beachten Sie hierbei, dass der Fernseher hinsichtlich Rechenleistung nicht mit einem Computer vergleichbar ist. Weiters verfügt der Fernseher über einen USB 2.0 Anschluss, was die übertragbare Datenmenge ebenfalls begrenzt.
    Die allgemeinen Spezifikationen für Videodateien finden Sie im Benutzerhandbuch ab Seite 248:
    http://downloadcenter.samsung.com/content/UM/201112/20111208190112921/Web_GSDVBE UA_GER.pdf
    Auf Seite 251 finden Sie für MPEG4-Videos folgende Beschränkung: Bei "mehr als 1280 x 720: max. 30 Frames".
    Als Alternative schlagen wir Ihnen vor, Ihr MacBook Pro per HDMI direkt an den Fernseher anzuschließen, die Videos auf dem MacBook Pro abzuspielen und den Fernseher als Monitor zu verwenden. In diesem Fall entfallen die vorher genannten Beschränkungen."
    I ask here how to use MPEG streamclip (free version; I use 1.9.2) so convert my movies into MPEG 4 so that I cann watch it on my Samsung TV.
    I filled out "Bildrate" "30" but this did not work. I have chosen less quality but there are still - less - interruptions and I find it laborious to test different versions of less quality so that it might work.
    I ask you also because I want to create my movies to give it to other people via the internet (f.i. via rapidshare) but I need a smaller size of my movies and do not know all the different TVs my friends have. I cannot imagine that it is not possible to create a movie in MPEG 4 that cannot be seen in many TVs via an external harddrive?

    I know that I can do that also in FCE. It takes much more time to convert a movie into MPEG4 than to export it as uncompressed movie in QuickTime which I can use f.i. in iDVD to burn a DVD or watch it on my MBP.
    But I don't know the versions of TVs of other people if I want to send them the movie via internet f.i. via mydrive.ch etc. which have limited space if used for free. So which settings to choose for an output in MPEG4?
    For my one use it is o.k. if the movie can be seen correctly in MPEG4 on my TV but I can also watch it via my MBP on my TV via HDMI.

  • Detecting character encoding from BLOB stream... (PLSQL)

    I'am looking for a procedure/function which can return me the character encoding of a "text/xml/csv/slk" file stored in BLOB..
    For example...
    I have 4 files in different encodings (UTF8, Utf8BOM, ISO8859_2, Windows1252)...
    With java I'can simply detect the character encoding with JuniversalCharDet (http://code.google.com/p/juniversalchardet/)...
    thank you

    Solved...
    On my local PC I have installed Java 1.5.0_00 (because on DB is 1.5.0_10)...
    With Jdeveloper I have recompiled source code from:
    http://juniversalchardet.googlecode.com/svn/trunk/src/org/mozilla/universalchardet
    http://code.google.com/p/juniversalchardet/
    After that I have made a JAR file and uploaded it with loadjava to my database...
    C:\>loadjava -grant r_inis_prod -force -schema insurance2 -verbose -thin -user username/password@ip:port:sid chardet.jarAfter that I have done a java procedure and PLSQL wrapper example below:
       public static String verifyEncoding(BLOB p_blob) {
           if (p_blob == null) return "-1";
           try
            InputStream is = new BufferedInputStream(p_blob.getBinaryStream());
            UniversalDetector detector = new UniversalDetector(null);
            byte[] buf = new byte[p_blob.getChunkSize()];
            int nread;
            while ((nread = is.read(buf)) > 0 && !detector.isDone()) {
                detector.handleData(buf, 0, nread);
            detector.dataEnd();
            is.close();
           return detector.getDetectedCharset();
           catch(Exception ex) {
               return "-2";
       }as you can see I used -2 for exception and -1 if input blob is null.
    then i have made a PLSQL procedure:
    function f_preveri_encoding(p_blob in blob) return varchar2 is
    language Java name 'Zip.Zip.verifyEncoding(oracle.sql.BLOB) return java.lang.String';After that I have uploaded 2 different txt files in my blob field.. (first one is encoded with UTF-8, second one with WINDOWS-1252)..
    example how to call:
    declare
       l_blob blob;
       l_encoding varchar2(100);
    begin
    select vsebina into l_blob from dok_vsebina_dokumenta_blob where id = 401587359 ;
    l_encoding := zip_util.f_preveri_encoding(l_blob);
    if l_encoding = 'UTF-8' then
       dbms_output.put_line('file is encoded with UTF-8');
    elsif l_encoding = 'WINDOWS-1252' then
       dbms_output.put_line('file is encoded with WINDOWS-1252');
    else
        dbms_output.put_line('other enc...');
    end if;
    end;Now I can get encoding from blob and convert it to database encoding and store datas in CLOB field..
    Here you have a chardet.jar file if you need this functionality..
    https://docs.google.com/open?id=0B6Z9wNTXyUEeVEk3VGh2cDRYTzg
    Edited by: peterv6i.blogspot.com on Nov 29, 2012 1:34 PM
    Edited by: peterv6i.blogspot.com on Nov 29, 2012 1:34 PM
    Edited by: peterv6i.blogspot.com on Nov 29, 2012 1:38 PM

  • I paid to convert a file from pdf to Word doc. and it is unintelligible. Why ?

    I paid to convert a file from pdf to Word and it is unintelligible. Why ?

    Hi M & B P,
    Please give the following a try:
    If you're converting via the ExportPDF website, log out, clear the cache, and then log back in.
    If you're converting from within Reader, choose Help > Check for Updates to make sure that you have the most current version.
    Please let us know how it goes. If you're still having problems, please let us know how you're converting, what browser you're using, and whether you're on Mac OS and Windows. We'll do some deeper digging if need be.
    Best,
    Sara

  • What is the proper way to convert a VHD from dynamic to basic without losing data?

    Hi,
    What is the proper way to convert a VHD from dynamic to basic without losing data?
    Our VM is running Windows Server 2008 R2 SP1
    Thanks in advanced

    Hi efebo,
    "After you convert a basic disk to a dynamic disk, you cannot change the dynamic volumes back to partitions. Instead, you must delete all dynamic volumes on the disk and then use the
    Convert To Basic Disk command. If you want to keep your data, you must first back it up or move it to another volume. "
    Please refer to following link:
    http://technet.microsoft.com/en-us/library/cc731274.aspx
    You can try to backup the dynamic volume via Windows Server Backup then restore it to a new basic VHD file ( the space is recommended to be   larger than or equal to the old one ) .
    Hope it helps
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Read Image file from BLOB.

    Hi All,
    I am trying to load data from BLOB data from database and save the image file.
    SQL to insert data:
    INSERT INTO BLOBTest (BLOBName, BLOBData)
    SELECT 'First test file', BulkColumn FROM OPENROWSET(Bulk 'C:\Inbound\logo.jpg', SINGLE_BLOB) AS BLOB
    I am using the following 'SELECT top 1 BLOBData from BLOBTest' to get the data and setting the value to 'Image Saver' action. The image file is saved to the specified path, but the image is not opening.
    I get "Image is damaged, corrupted or is too large message. The file is around 40 KB."
    Am i missing something.
    Any help would be highly appreciated.
    MII Version: 14.0 SP 3
    Thanks,

    I think this thread might help: Can we interpret Oracle BLOB data in SAP MII and how?
    Basically MII doesn't support the BLOB/CLOB data types so in your query you will need to convert it to a base64 string that MII can consume using the image saver action.
    Regards,
    Christian

Maybe you are looking for

  • Creating a Date Variable

    Hello, I'm trying to query for a range of dates Month, Year to Month, Year As you can see, the current format of my tables are that [month] = # (1 is January, 2 is February, etc) and [year] in two separate fields. How do I create a variable where it

  • Bootcamp & Parallels, licensing Win 8.1?

    I got Windows 8.1 installed using bootcamp (for those having trouble, I installed Win 7, and then upgraded to Win 8.1).  I then installed Parallels, and was able to boot it as a VM.   Going forward, I would like to be able to do both, boot Win 8.1 na

  • IDOC to JDBC Scenario error

    Hi All, I am doing a IDOC to JDBC Scenario.I am done with IR and ID. The Table in the DB is TABLE1 with Field1 and Field2. Now when I run thescenario it throws an error , 2009-03-19 12:41:06 Success INSERT INTO  TABLE1 (Field1, Field2) VALUES (KM2478

  • Photo problems in blog entries...

    I am having problems with photos and images displaying in blog entries. I am able to place photos in the text of my blog entries but upon publishing some will display and some won't (in any web browser or system used). I have tried emptying Safari ca

  • Message Handlers

    Hi Experts, The message_handler which we have access to in the generic service uses the interface IF_HRBAS_MESSAGE_HANDLER which have only ADD_MESSAGE method. We have a situation where the messages from one form's errors are not being cleared when ch