Error:  BFILE not exists when i insert an image file(.jpg)

Hi,
i have created a directory
called sampl_dir as '/home/oracle/files'
i have an image file(.gif) and 3 pdf filesin the
directory.
i insert 4 rows in to the table using BFILE for all
the 4 LOB.
i get output in TOAD, where for all the pdf files, but when i select * from table.
for all the pdf files output says 'EXISTS' but for the image(.gif) FILE, the
output says 'NOEXIST'
I tried putting all the files in different locations
and tried giving different file owner, and group owner
but whatever permissions i set or wherever i put the
files, the output always says 'EXISTS' for pdf files
but not for gif file.
so i was thinking there is something got to do with
the format of the image file, or is there someother
way to select image from the table. i mean i thought
"select * from table" may be does not work for images
but it does work for text, pdf documents. am i right?
how do i solve this?
Thanks,
Philip.

Hi Kamal,
this was the plsql code i used to load image file and read the length. and it did not work
DBMS_LOB.LOADBLOBFROMFILE(v_dest_blob, v_source_locator1, DBMS_LOB.LOBMAXSIZE, v_dest_offset, v_source_offset);
DBMS_OUTPUT.PUT_LINE('Size of BLOB post-load: '||(v_dest_offset -1));
but now i modified the above as the following one shown below and it worked, can u tell what was the problem with the above code
DBMS_LOB.LOADBLOBFROMFILE(v_dest_blob, v_source_locator1, DBMS_LOB.LOBMAXSIZE, v_dest_offset, v_source_offset);
DBMS_OUTPUT.PUT_LINE('SIZE OF IMAGE FILE: ' ||DBMS_LOB.GETLENGTH(v_dest_blob));
i did the select query as u told for selecting the length and now it works and i am able to see the output length as 27342.
Okay Kamal, now is there a way that i can view a pdf file and image file after i select them from the table. i mean when i do a select query on the blob column, i only see result as "(HUGEBLOB)". BUT instead can i see whether what is the blob that is stored like whether it is a pdf or image and what is the name.
how can i actually see the blob file names etc.
Thanks,
Philip.

Similar Messages

  • I get a message that helper application does not exist when I try to open a jpg or excel files as attachments. I have associated use windows live photo gallery

    I have gone to Tools, Options, Attachments and there are programs associated that should be able to open the files - Windows Live Photo gallery for JPG files and Microsoft Excel for excel files. I have to actually download and save the files and then open them. Is there a fix for this?

    Thanks, Matt, I did as you suggested and now it works!

  • Windows Server 2008R2 running Remote Desktop Services reports printer process does not exist when installing PDF printer

     Windows Server 2008R2 running Remote Desktop Services reports printer process does not exist when installing PDF printer, And when Installing network printers from the domain controller it reports it cannot connect to printer.  I can ping all
    network devices. I can connect to the internet.
    On boot I get a netlogon 5719 error followed by service control manager errors 7023,7001 and a group policy error 1129.
    Clients can connect to the remote application and RDP operates to connect to the server internally and externally.
    The domain controller is another server 2008r2 box. I have scoured the internet but have not found any solutions that work yet.

    Hi,
    After referring to your post, it can be identified that the issue which you are facing is mostly due to some network issue in your environment. Please recheck your network connection issue between computer and domain controller. 
    Can you able to ping with IP address and also with fully qualified name of a domain controller in the users' and computers' domain. If it fails states that name resolution issue with computer and domain controller. Are you using MS DHCP Relay agent then there’s
    available Hotfix for the particular Event ID. Please go through this KB 2459530 to fix the error event ID.
    As per the net logon error 5719 which you are facing states that the client component of Netlogon was unable to locate a DC for the domain it was trying to perform an operation against. Below is one of the reason. If this is being logged on a DC and the event
    refers to the DC's own domain, something might be preventing the client component of Netlogon from starting a network session (to itself or to another DC in the domain). The following event 7001 & 7023 states start & stop operation service. Please
    go through beneath article for more details.
    1.  Event ID 5719 is logged when you start a computer
    2.  Netlogon 5719 and the Disappearing Domain [Controller]
    3.  Event ID 1129 — Microsoft-Windows-GroupPolicy
    Hope it helps!
    Regards.

  • User gets "This network connection does not exist" when she tries to log on to Terminal Server (2008 R2)

    User gets "This network connection does not exist" when she tryes to log on to Terminal Server (2008 R2)
    I got more than 100 users. Shes the only one getting is. We tried four computers (All Windows 7 Pro)
    Nothing useful in event viewer to mention.

    Hi,
    Thank you for posting in Windows Server Forum.
    Does that user able to login previously?
    From your comment, it seems that there is some permission issue with that user. As you have checked that user with different system also. Please check that user is added under “Remote Desktop User” local group and also allowed “Allow log on through
    Remote Desktop service” permission under group policy. Also please check that when user tries to login it uses “Domainname\Username” format.
    In addition for a try, also check by disabling firewall on one particular system.
    To add users and groups to the Remote Desktop Users group by using Local Users and Groups snap-in:
    1.  Click Start > Administrative Tools, Open Computer Management.
    2.  In the console tree, click the Local Users and Groups node.
    3.  In the details pane, double-click the Groups folder.
    4.  Double-click Remote Desktop Users, and then click
    Add.
    5.  In the Select Users dialog box, click Locations to specify the search location.
    6.  Click Object Types to specify the types of objects you want to search for.
    7.  Type the name you want to add in the Enter the object names to select (examples) box. 
    8.  Click Check Names.
    When the name is located, click OK.
    More information:
    Remote Desktop disconnected or can’t connect to remote computer or to Remote Desktop server (Terminal Server) that is running Windows Server 2008 R2
    http://support.microsoft.com/kb/2477176/en-us
    Hope it helps!
    Thanks,
    Dharmesh

  • Package does not exist when compile in Jgrasp 1.8.3

    I have a package called jpb stored in a folder called jpb. The package has two files SimpleIO.java and Convert.java. My program has 1 of the line like this
    import jpb.*;
    I put the path and classpath in Jgraps pointing to the folder jpb but when I compile the program, it keeps saying the package does not exist. Even when i took all the files outside and place it in the same folder with the file that i am compiling. It says that bad class file. The heck?????????.
    Can some1 please help. I even made an autoexec.bat to set up the path to the folder and run it. it keeps saying the package does not exist.

    Classpaths reference things like jar files or directories that contain .class files. Change your classpath to have the .jar files.

  • Error(not code #) when I try to open a JPG file in PhotoshopCS3

    I get a program error(not code #) when I try to open a JPG file in PhotoshopCS3 containing smart objects.
    I am running OS 10.5 on Intel Mac.
    Appreciate any feedback

    Is it really a JPG file if it has a smart object within?

  • Hey software does not respond when I open a new file or an existing file

    Hey software does not respond when I open a new file or an existing file

    Nobody can tell you anything without system info and other technical details.
    Mylenium

  • I get Server error 404 not found when downloading OSX LIONHELP

    I get Server error 404 not found when downloading OSX LION HELP!!!

    See message 11600
    "David R. Pina" <[email protected]> wrote:
    >
    Hello everyone,
    I'm using weblogic 6.0 for AIX.
    I'm trying to setup a new web application.
    Right now, I just want to access html files, but the web server is not working
    well.
    I can access the file
    http://myhost/myapp/index.html
    but if I try to access file2.html
    http://myhost/myapp/file2.html
    file2.html is in the same directory, with the same permissions and I get
    the 404
    error message
    At the beginning, I couldn't access index.html, because I created the directory
    "myapp"
    with user "root". Later, I changed the ownership to "wlowner" for "myapp"
    directory
    and for "index.html"
    Then I created "file2.html" with user "wlowner", and provided the same permissions
    as index.html but I can't access it.
    Could someone tell what might be wrong ?
    Any clues ?
    Thanks,
    David
    Mexico City

  • Error Indexing not allowed when marking indexing for document HR_DOC

    Hello all,
    We are able to solve the first problem. Now we have the following error
    "Error Indexing not allowed when marking indexing for document HR_DOC"
    Has anyone idea on how to solve it?
    Thanks a lot.
    Best regards,

    ....and thanks a lot for your feedback in resolving this issue!

  • MS ssis service: registry setting specifying configuration file does not exist. attempting to load default configuration file. SQLIService100 - event id 274

    window 2008 R2 server ---- after installing SQL 2008 R2 then applying sp2 / sp3 I noted a warning -
    Note this server had SQL 2008 R2 uninstalled previously.
    MS ssis service: registry setting specifying configuration file does not exist. attempting to load default configuration file.
    SQLIService100 - source
    event id- 274
    user - N/A
    Task category - service control.
    Do we need to fix something and how do we fix this warning event?
    dsk

    You could search online for this warning. I was able to find http://superuser.com/questions/346264/event-log-warning-registry-setting-specifying-configuration-file-does-not-exist
    where the fix is "in your registry, go to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTS\ServiceConfigFile
    or
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\100\ServiceConfigFile
    if value is empty then add in:
    C:\Program Files\Microsoft SQL Server\100\DTS\Binn\MsDtsSrvr.ini.xml"
    Arthur
    MyBlog
    Twitter

  • How to insert a image file into oracle database

    hi all
    can anyone guide me how to insert a image file into oracle database now
    i have created table using
    create table imagestore(image blob);
    but when inserting i totally lost don't know what to do how to write query to insert image file

    Hi I don't have time to explain really, I did have to do this a while ago though so I will post a code snippet. This is using the commons file upload framework.
    Firstly you need a multi part form data (if you are using a web page). If you are not using a web page ignore this bit.
    out.println("<form name=\"imgFrm\" method=\"post\" enctype=\"multipart/form-data\" action=\"FileUploadServlet?thisPageAction=reloaded\" onSubmit=\"return submitForm();\"><input type=\"FILE\" name=\"imgSource\" size='60' class='smalltext' onKeyPress='return stopUserInput();' onKeyUp='stopUserInput();' onKeyDown='stopUserInput();' onMouseDown='noMouseDown(event);'>");
    out.println("   <input type='submit' name='submit' value='Submit' class='smalltext'>");
    out.println("</form>"); Import this once you have the jar file:
    import org.apache.commons.fileupload.*;Now a method I wrote to upload the file. I am not saying that this is correct, or its the best way to do this. I am just saying it works for me.
    private boolean uploadFile(HttpServletRequest request, HttpSession session) throws Exception {
            boolean result = true;
            String fileName = null;
            byte fileData[] = null;
            String fileUploadError = null;
            String imageType = "";
            String error = "";
            DiskFileUpload fb = new DiskFileUpload();
            List fileItems = fb.parseRequest(request);
            Iterator it = fileItems.iterator();
            while(it.hasNext()){
                FileItem fileItem = (FileItem)it.next();
                if (!fileItem.isFormField()) {
                    fileName = fileItem.getName();
                    fileData = fileItem.get();
                    // Get the imageType from the filename extension
                    if (fileName != null) {
                        int dotPos = fileName.indexOf('.');
                        if (dotPos >= 0 && dotPos != fileName.length()-1) {
                            imageType = fileName.substring(dotPos+1).toLowerCase();
                            if (imageType.equals("jpg")) {
                                imageType = "jpeg";
            String filePath = request.getParameter("FILE_PATH");
            session.setAttribute("filePath", filePath);
            session.setAttribute("fileData", fileData);
            session.setAttribute("fileName", fileName);
            session.setAttribute("imageType", imageType);
            return result;  
         } And now finally the method to actually write the file to the database:
    private int writeImageFile(byte[] fileData, String fileName, String imageType, String mode, Integer signatureIDIn, HttpServletRequest request) throws Exception {
            //If the previous code found a file that can be uploaded then
            //save it into the database via a pstmt
            String sql = "";
            UtilDBquery udbq = getUser(request).connectToDatabase();
            Connection con = null;
            int signatureID = 0;
            PreparedStatement pstmt = null;
            try {
                udbq.setUsePreparedStatements(true);
                con = udbq.getPooledConnection();
                con.setAutoCommit(false);
                if((!mode.equals("U")) || (mode.equals("U") && signatureIDIn == 0)) {
                    sql = "SELECT SEQ_SIGNATURE_ID.nextval FROM DUAL";
                    pstmt = con.prepareStatement(sql);
                    ResultSet rs = pstmt.executeQuery();
                    while(rs.next()) {
                       signatureID = rs.getInt(1);
                    if (fileName != null && imageType != null) {
                        sql = "INSERT INTO T_SIGNATURE (SIGNATURE_ID, SIGNATURE) values (?,?)";
                        InputStream is2 = new ByteArrayInputStream(fileData);
                        pstmt = con.prepareStatement(sql);
                        pstmt.setInt(1, signatureID);
                        pstmt.setBinaryStream(2, is2, (int)(fileData.length));
                        pstmt.executeUpdate();
                        pstmt.close();
                        con.commit();
                        con = null;
                if(mode.equals("U") && signatureIDIn != 0) {
                    signatureID = signatureIDIn.intValue();
                    if (fileName != null && imageType != null) {
                        sql = "UPDATE T_SIGNATURE SET SIGNATURE = ? WHERE SIGNATURE_ID = ?";
                        InputStream is2 = new ByteArrayInputStream(fileData);
                        pstmt = con.prepareStatement(sql);
                        pstmt.setBinaryStream(1, is2, (int)(fileData.length));
                        pstmt.setInt(2, signatureID);
                        pstmt.executeUpdate();
                        pstmt.close();
                        con.commit();
                        con = null;
            } catch (Exception e) {
                con = null;
                throw new Exception(e.toString());
            return signatureID;
       }

  • I am trying to organize a zip file with a bunch of links and files. But when I drag an image file to a folder, it always "Snaps to grid" instead of just landing where I put it.

    I am trying to organize a zip file with a bunch of links and files. But when I drag an image file to a folder, it always "Snaps to grid" instead of just landing where I put it. All of the files are going into the same zip file but I want them visually in the space that I put them and not at the bottom of the snap to grid folder location they are looking like.  I am trying to  drag and drop files in groups so that I can group them for now, but image files always do their own "sort by" when I drag them from my web pages. Links don't do it though.  I tried resetting the folder, and deleting the DS files. No luck.

    You keep asking variants on this same question. You've had replies in all your other threads. If you can't find them, go here and click where it says Activity:
    Thomas Cannon Jr.

  • How to insert an image file in Oracle database

    hi
    can you please tell me how to insert an image file into oracle database????
    suppose there is one image file in c:\pictures\rose.jpg. how to insert that file into database? theoretically i know that will be BFILE type but i dont know how to insert that.
    will be waiting for your reply........
    thanks & regards,
    Priyatosh

    Hello,
    The easiest way to load a blob is to use SQL loader.
    This example comes from the utilities guide:
    LOAD DATA
    INFILE 'sample.dat'
    INTO TABLE person_table
    FIELDS TERMINATED BY ','
    (name CHAR(20),
    1 ext_fname FILLER CHAR(40),
    2 "RESUME" LOBFILE(ext_fname) TERMINATED BY EOF)
    Datafile (sample.dat)
    Johny Quest,jqresume.txt,
    Speed Racer,'/private/sracer/srresume.txt',
    Secondary Datafile (jqresume.txt)
    Johny Quest
    500 Oracle Parkway
    Secondary Datafile (srresume.txt)
    Loading LOBs
    10-18 Oracle Database Utilities
    Speed Racer
    400 Oracle Parkway
    regards,
    Ivo

  • How to insert an image file as blob using JDBC Statement

    Hi,
    I'm new on java.
    I want the code to insert an image file in Oracle database whose data type is blob.
    i want to use JDBC statement not the prepared statement.
    Please help me out.

    user8739226 wrote:
    thanks for the solution.
    I want to ask one thing
    let say i've created a method in a bean in which i'm passing three parameters.
    One is tablename as String, Second is Name of tablefields as Object, Third is Values as Object
    Like:
    public synchronized int insert(String table,Object[] fields, Object[] values)Ah now we're getting somewhere. I was trying to come up with a situation where using a regular Statement over PreparedStatement would be viable and came up with practically nothing.
    In the method body i'm accessing the table fields and values and combining them into the insert sql query.
    how can i do this using preparedstatment.
    how do i come to know here in this bean that this value is int or string or date at runtime to use setInt, setString, setdate or setBlob respectively.That's your problem. Bad design. You want to make some sort of universal insert method that can insert anything anywhere. But it doesn't really make sense, because whenever you're trying to insert something, you know exactly what you want to insert and where. You could use a PreparedStatement at that point (although encapsulate it in its own method). Now you're trying to create your own poorly designed framework over JDBC that doesn't solve problems, only increases them.
    Above was the only reason i saw, i was using statement instead of preparedstatment as statement was looking easy in this situation.
    please, give me the solution of above using preparedstatment.No, rather you should reconsider your design. What advantage does your insert() method give you over, let's say using a regular PreparedStatement. Granted, you can put your connection opening and other boilerplate code in the method. But if that's your only problem, then your insert method isn't gonna be much use. You could always switch to JPA for example and work with that.

  • Can I insert the image file into PDF file  in Adobe X Standard ?

    can I insert the image file into PDF file in Adobe X Standard ?

    http://matt.coneybeare.me/how-to-make-an-html-signature-in-apple-mail-for-maveri cks-os-x-10-dot-9/

Maybe you are looking for

  • Erro na geração da NFe - Devolução de Transferência em Trânsito

    Bom dia a todos. Estou tentando fazer o cenário de devolução de transferência entre filiais quando o produto ainda estiver em trânsito. Utilizei como referência para todas as etapas o documento encontrado aqui no próprio fórum Stock Transfer Order (S

  • I have two iphone 4s with one apple account how can i separate them.

    I have two iphone 4s and we share the apple account.  I want to have individual accounts.  How can I change the secondary account? In other words I want to add another apple account.

  • SAP does not start after Kernel Upgrade

    Hi We were carrying out the Kernel upgrade on our HPUX 11.23 and Oracle, R3 Quality System. From Kernel 196 to Kernel 221 After carrying taking a backup of the current exe folder we have copied the new exe ( after Uncar ) We restarted the system We t

  • Translation Builder an WebForms

    I need to translate my forms in many european languages and I decided to use Translation Builder. Translation Builder, I belive, choose the language using the registry NLS_LANGUAGE parameter. When I try to use it in WebForm I can't change NLS_LANGUAG

  • Open .ico files from Bridge CS4

    Hey all, I just got done reformatting my hard drive. After reinstalling my Adobe CS4 software, I can't open .ico files from Bridge -- before the hard drive reformat I COULD open .ico files from Bridge. I can open .ico files directly from Photoshop (I