Inserting Images in a Table

When I insert images in a table and align them right, for
example, there are still a few pixels between the edge of the table
and the image on the top and right.
How do I make an image go to the absolute edge of a table?
Thanks,
Chris

By managing the table's default cellpadding and cellspacing.
Are you
setting them to zero?
If that's not happening then we would need to see your code.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"OxfordFishSalon" <[email protected]> wrote
in message
news:fulior$9i1$[email protected]..
> When I insert images in a table and align them right,
for example, there
> are
> still a few pixels between the edge of the table and the
image on the top
> and
> right.
>
> How do I make an image go to the absolute edge of a
table?
>
> Thanks,
> Chris
>

Similar Messages

  • How to insert images in a table

    Hi all,
    Iam working On Oracle10g
    can any one explain how to insert images in a table.
    Any help will be much appreciated!!
    Thanks.

    Hi,
    Try like this
    step1: Create a folder & place the image in it.
    for eg: place the image 'Sunset.jpg' in 'IMAGEFILE' folder of D drive
    Step2: Create a Directory in sql*plus as
    CREATE DIRECTORY IMAGEDIR AS 'D:\IMAGEFILE';
    Step3: Grant previlage to user
    GRANT READ ON DIRECTORY IMAGEDIR TO PUBLIC;
    Step4: Create the table in which you want to insert the image
    create table loadalbum
    (name varchar2(100),
    image blob)
    Step5: Create the procedure as
    declare
    l_blob blob;
    l_bfile bfile;
    begin
    insert into loadalbum values ( 'Sunset', EMPTY_BLOB() )
    returning image into l_blob;
    l_bfile := bfilename( 'IMAGEDIR', 'Sunset.jpg');
    dbms_lob.fileopen( l_bfile );
    dbms_lob.loadfromfile( l_blob, l_bfile, dbms_lob.getlength( l_bfile ) );
    dbms_lob.fileclose( l_bfile );
    end;
    Now you can know whether the image is inserted or not by
    SELECT COUNT(*) FROM LOADALBUM;
    COUNT(*)
    1
    which means image is inserted.
    Hope this may help you.

  • INSERTING IMAGE TO DATABASE TABLE

    please suggest me the simplest code of image insertion in the database table.

    this is an example:>
    public static void AddEmployee(
    string lastName,
    string firstName,
    string title,
    DateTime hireDate,
    int reportsTo,
    string photoFilePath,
    string connectionString)
    byte[] photo = GetPhoto(photoFilePath);
    using (SqlConnection connection = new SqlConnection(
    connectionString))
    SqlCommand command = new SqlCommand(
    "INSERT INTO Employees (LastName, FirstName, " +
    "Title, HireDate, ReportsTo, Photo) " +
    "Values(@LastName, @FirstName, @Title, " +
    "@HireDate, @ReportsTo, @Photo)", connection);
    command.Parameters.Add("@LastName",
    SqlDbType.NVarChar, 20).Value = lastName;
    command.Parameters.Add("@FirstName",
    SqlDbType.NVarChar, 10).Value = firstName;
    command.Parameters.Add("@Title",
    SqlDbType.NVarChar, 30).Value = title;
    command.Parameters.Add("@HireDate",
    SqlDbType.DateTime).Value = hireDate;
    command.Parameters.Add("@ReportsTo",
    SqlDbType.Int).Value = reportsTo;
    command.Parameters.Add("@Photo",
    SqlDbType.Image, photo.Length).Value = photo;
    connection.Open();
    command.ExecuteNonQuery();
    public static byte[] GetPhoto(string filePath)
    FileStream stream = new FileStream(
    filePath, FileMode.Open, FileAccess.Read);
    BinaryReader reader = new BinaryReader(stream);
    byte[] photo = reader.ReadBytes((int)stream.Length);
    reader.Close();
    stream.Close();
    return photo;
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Inserting image in a table using php +zend

    Hy!
    The table is
    (products(picture_p blob,prod_id number)) when i try to insert the pictureusing a similar code with this from oracle .com:
    // Insert the BLOB from PHP's tempory upload area
    $lob = oci_new_descriptor($conn, OCI_D_LOB);
    $stmt = oci_parse($conn, 'INSERT INTO BTAB (BLOBID, BLOBDATA) '
    .'VALUES(:MYBLOBID, EMPTY_BLOB()) RETURNING BLOBDATA INTO :BLOBDATA');
    oci_bind_by_name($stmt, ':MYBLOBID', $myblobid);
    oci_bind_by_name($stmt, ':BLOBDATA', $lob, -1, OCI_B_BLOB);
    oci_execute($stmt, OCI_DEFAULT);
    // The function $lob->savefile(...) reads from the uploaded file.
    // If the data was already in a PHP variable $myv, the
    // $lob->save($myv) function could be used instead.
    if ($lob->savefile($_FILES['lob_upload']['tmp_name'])) {
    oci_commit($conn);
    else {
    echo "Couldn't upload Blob\n";
    $lob->free();
    oci_free_statement($stmt);
    // Now query the uploaded BLOB and display it
    $query = 'SELECT BLOBDATA FROM BTAB WHERE BLOBID = :MYBLOBID';
    $stmt = oci_parse ($conn, $query);
    oci_bind_by_name($stmt, ':MYBLOBID', $myblobid);
    oci_execute($stmt, OCI_DEFAULT);
    $arr = oci_fetch_assoc($stmt);
    $result = $arr['BLOBDATA']->load();
    // If any text (or whitespace!) is printed before this header is sent,
    // the text won't be displayed and the image won't display properly.
    // Comment out this line to see the text and debug such a problem.
    header("Content-type: image/JPEG");
    echo $result;
    oci_free_statement($stmt);
    oci_close($conn); // log off
    ?>
    I get an error -can't open file htdocs/ phpA.tmp
    please if you have an idea from where it could be the error reply

    It looks like your webserver doesn't have read permissions on the directory and files within it. In Linux, set it to 755, in Windows, I'm not sure what needs doing sorry.

  • Inserting images into a table

    Hi All,
    Can any one tell me how to create a table(with which data type) to insert a jpg/gif files into that table and how to retrieve it using D2k.
    Thanks in Advance
    devender

    Hi ,
    You can use a BFILE to store a jpg/gif files
    into a table.
    About Retrieving it from D2K you can use :
    READ_IMAGE_FILE.
    ( Look up in the Oracle doc. for something
    similar ).
    HTH
    Naresh
    Thanks in Advance
    devender
    null

  • Performance after inserting image in a table

    Hi all,
    I have two tables in Oracle10gR1 database.
    One contains personal info and other their images with primary key foriegn key relation.
    Performance is ok.
    Now our requirment is that we have to incorporate the images in the personal info table itself.
    Is there any performance issue is there?
    Please help
    Thanks in advance.
    AM

    The answer for this question depends on some required information you didn't voluntarily share.
    If the datatype of the image is a BLOB and the BLOB is stored in a LOBSEGMENT, there will be no issue.
    If the datatype of the image is a LONG, you will be replacing an optimal solution for a less than optimal solution, and you will likely hit a performance issue. LONGs (a deprecated datatype) are always stored 'inline' in the record.
    Doing so, the record might not fit in a block anymore, and you will get row-chaining.
    Many years ago, I resolved performance problems in a puzzlegenerator, by removing the graphical representation of the puzzle, stored as a LONG, and by putting it in a separate table.
    Sybrand Bakker
    Senior Oracle DBA

  • Inserting image to table...ORA-22288: file or LOB operation FILEOPEN failed

    Good day!
    I'm just new with using databases, and i'm enjoying it.
    So I read that you can insert images to a table, and so i decided to try it... and here's where I'm at..
    *I made a directory
    CREATE directory image_dir as 'D:\Images';
    --Directory Created.
    *I created a table
    CREATE TABLE animages
    (aname VARCHAR2(40),
    breedno NUMBER(10),
    image_file BLOB,
    image_name VARCHAR2(40),
    CONSTRAINT aname_fk FOREIGN KEY (aname) REFERENCES clist(aname));
    --Table Created.
    *Then I made a procedure for inserting the images
    CREATE OR REPLACE PROCEDURE insert_image_file (p_aname VARCHAR2, p_breedno NUMBER, p_image_name IN VARCHAR2)
    IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := BFILENAME('IMAGE_DIR', p_image_name);
    INSERT INTO animages
         (aname, breedno, image_file, image_name)
    VALUES (p_aname, p_breedno, EMPTY_BLOB(), p_image_name)
    RETURNING image_file
    INTO dst_file;
    SELECT image_file
    INTO dst_file
    FROM animages
    WHERE aname = p_aname AND image_name = p_image_name
    FOR UPDATE;
    DBMS_LOB.fileopen(src_file, DBMS_LOB.file_readonly);
    lgh_file := DBMS_LOB.getlength(src_file);
    DBMS_LOB.loadfromfile(dst_file, src_file, lgh_file);
    UPDATE animages
    SET image_file = dst_file
    WHERE aname = p_aname AND image_name = p_image_name;
    DBMS_LOB.fileclose(src_file);
    END;
    --Procedure Created.
    *So i was able to do those but when i was trying to execute the procedure i get this error..
    execute insert_image_file('African Elephant', 60, 'African_Elephant');
    ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    The device is not ready.
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at "SCOTT.INSERT_IMAGE_FILE", line 18
    ORA-06512: at line 1
    I've been looking for a solution for a day now, hope someone could help me, thanks.
    BTW, I got the code for the PROCEDURE from a user named Aparna16, just did some minor editing so it would fit my tables, thanks.
    And sorry if the post is too long.

    Hi;
    ORA-22288:Error:     ORA-22288
    Text:     file or LOB operation %s failed %s
    Cause:     The operation attempted on the file or LOB failed.
    Action:     See the next error message in the error stack for more detailed
         information. Also, verify that the file or LOB exists and that the
         necessary privileges are set for the specified operation. If the error
         still persists, report the error to the DBA.
    Regard
    Helios

  • Error in inserting images into table

    Hi All,
    I am trying to insert images into a table.
    Followed these steps:
    CREATE TABLE XX_DEMO_IMG_TBL
    file_id      NUMBER(5),
    file_name      VARCHAR2(30),
    file_data      BLOB
    LOAD DATA
    INFILE *
    REPLACE
    INTO TABLE XX_DEMO_IMG_TBL
    FIELDS TERMINATED BY ','
    file_id INTEGER(5),
    file_name FILLER CHAR(30),
    file_data LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    1,c:\1.txt
    used sqlldr cmd
    Got the following error:
    *ecord 1: Rejected - Error on table XX_DEMO_IMG_TBL.
    ORA-01460: unimplemented or unreasonable conversion requested*
    I am using SQLPlus: Release 10.2.0.3.0 -*
    Can any one please guide where am i going wrong ?
    Thanks,
    Saritha

    Thanks for your time.
    I got a solution for this, I modified my control file like this..
    LOAD DATA
    INFILE *
    REPLACE
    INTO TABLE SCOTT.XX_DEMO_IMG_TBL
    FIELDS TERMINATED BY ','
    file_id ,
    file_name ,
    file_data LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    1,c:\Users\SariRavi\Desktop\logo.gif
    and it worked.
    Thanks,
    Saritha

  • How can I recover BFILE images from a table?

    I`m a Spanish student, so excuse me for my poor english.
    I have used LOB objects to insert images into some tables of a DataBase. However, I have tried to recover the inserted images to put those into a Developer 6 Form, and I haven4t done it.
    ?Have I need an specific procedure?
    ?Is There some option in Developer 6 to do it easily?
    Please, help me.

    If you have access to a PC I believe - if memory serves me correctly - that the free download SubRip can rip the highlight overlays back to graphics files from the Menu VOBs
    There is a subtitle ripping program for Mac - D-Subtitler - which may do the same job but I have never found it to be as good at ripping stuff as SubRip.
    I guess the only other way is if they are not too complex is to recreate the overlays in Photoshop using frame grabs for reference?

  • Inserting images in a collapsible panel

    Can anybody help with a problem about inserting an image into
    the tab of a collapsible panel as a visual clue to users that they
    can open/close the panel? I'm trying to ensure that users don't
    just see the tab of the panel as a kind of good looking heading but
    that the images (two - one for open, one for closed) would give a
    visual clue that the tab actually opens when clicked.
    I'd be very grateful for any help, thanks, st44

    By managing the table's default cellpadding and cellspacing.
    Are you
    setting them to zero?
    If that's not happening then we would need to see your code.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "OxfordFishSalon" <[email protected]> wrote
    in message
    news:fulior$9i1$[email protected]..
    > When I insert images in a table and align them right,
    for example, there
    > are
    > still a few pixels between the edge of the table and the
    image on the top
    > and
    > right.
    >
    > How do I make an image go to the absolute edge of a
    table?
    >
    > Thanks,
    > Chris
    >

  • How to Insert Image in a Column of a table

    Hi
    I have read several documentations but still could not find any relevant one that can help me in inserting a image in a BLOB column of a table.I have read about DBMS_LOB but still not clear how to insert an image in the table.
    I followed following steps :
    create table Emp_Identity(Id Number,Photo BLOB);
    Insert Into Emp_Identity(1,'d:\vishal.bmp');
    Please tell me steps to be followed.
    Regards
    Vishal Chaudhry
    null

    I am using Developer 2000 Forms 6i as Front End (Oracle 8.1.6)
    My table structure is:
    SQL> desc test_lob
    Name Data Type
    ID NUMBER
    NAME VARCHAR2(100)
    PHOTO BLOB
    SOUND BINARY FILE LOB
    IS there any way to display the BFILE contents on the frontend.....?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by vishal chaudhry ([email protected]):
    Hi,
    I could actually insert an image in a BLOB type column from the backend(Sql plus) not directly but by using BFILE and see that image on the frontend (Forms 6i Developer 2000,Item type is Image as there is nothing like BLOB/BFILE in front end) using the following procedure :
    IS there any way I can insert an image directly in a BLOB column from the backend rather than using BFILE?
    CREATE OR REPLACE PROCEDURE loadLOBFromBFILE_proc IS
    Dest_loc BLOB;
    Src_loc BFILE := BFILENAME('SOUND_DIR', '123w.bmp');
    ** SOUND_DIR is a logical directory created by giving path of the server
    ** Create Directory SOUND_DIR as 'd:\u020\o816\ctx\test'
    ** d:\u020\o816\ctx is the physical path of the server \\pslndb\ctx$
    ** test is the dummy testing directory created on the server
    ** 123w.bmp is lying in the test directory
    Amount INTEGER ;
    BEGIN
    Amount := DBMS_LOB.GETLENGTH(Src_loc);
    SELECT photo INTO Dest_loc FROM test_lob
    WHERE ID = 1
    FOR UPDATE;
    /* Opening the source BFILE is mandatory: */
    DBMS_LOB.OPEN(Src_loc, DBMS_LOB.LOB_READONLY);
    /* Opening the LOB is optional: */
    DBMS_LOB.OPEN(Dest_loc, DBMS_LOB.LOB_READWRITE);
    DBMS_LOB.LOADFROMFILE(Dest_loc, Src_loc, Amount);
    /* Closing the LOB is mandatory if you have opened it: */
    DBMS_LOB.CLOSE(Dest_loc);
    DBMS_LOB.CLOSE(Src_loc);
    COMMIT;
    END;
    <HR></BLOCKQUOTE>
    null

  • How to insert image into table and to in Oracle 9i intermedia?

    Mr Lawrence,
    I want to ask something:
    I use Oracle 9i intermedia
    If i use this script:
    CREATE TABLE images (
    file_name VARCHAR2(100) NOT NULL,
    image ORDSYS.OrdImage
    then
    CREATE OR REPLACE DIRECTORY imgdir AS 'd:/data';
    then
    INSERT INTO images (file_name, image)
    VALUES ('tree', ORDSYS.ORDImage.init('file','imgdir','tree.jpg' ));
    I put tree.jpg in directory d:/data in my hard drive.
    Is my tree.jpg file had already get in to my images table?
    I'm little confuse, because when i check my table with this script:
    select file_name, i.image.getWidth() from images i;
    it's show that my i.image.getWidth() for file_name tree is empty.. that mean my tree.jpg doesn't get in to my table.. am i correct?
    N also i want to ask how to display to screen all of my image from images table?
    Is it posible Oracle 9i intermedia to support display image from table?
    How?
    thanks Mr Lawrence

    -- First step would be to create a directory in oracle and map it to the folder where your image resides.
    create directory image_dir as *'c:\image_dir';*
    Then you would have to use a procedure to insert the image in your table. SO first create a table to hold the image. Note that you have to use a BLOB to insert the image.
    CREATE TABLE test_image
    ID NUMBER,
    image_filename VARCHAR2(50),
    image BLOB
    Now let's write the procedure to insert the image in the table above.
    CREATE OR REPLACE PROCEDURE insert_image_file (p_id NUMBER, p_image_name IN VARCHAR2)
    IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := BFILENAME ('image_DIR', p_image_name);
    -- insert a NULL record to lock
    INSERT INTO temp_image
    (ID, image_name, image
    VALUES (p_id, p_image_name, EMPTY_BLOB ()
    RETURNING image
    INTO dst_file;
    -- lock record
    SELECT image
    INTO dst_file
    FROM temp_image
    WHERE ID = p_id AND image_name = p_image_name
    FOR UPDATE;
    -- open the file
    DBMS_LOB.fileopen (src_file, DBMS_LOB.file_readonly);
    -- determine length
    lgh_file := DBMS_LOB.getlength (src_file);
    -- read the file
    DBMS_LOB.loadfromfile (dst_file, src_file, lgh_file);
    -- update the blob field
    UPDATE temp_image
    SET image = dst_file
    WHERE ID = p_id AND image_name = p_image_name;
    -- close file
    DBMS_LOB.fileclose (src_file);
    END insert_image_file;
    Now execute the procedure to insert the image.
    EXECUTE insert_image_file(1,'test_image.jpg');
    Thanks,
    Aparna

  • Inserting an image into a table using the iPad?

    I am trying to make an evidence table in pages. I need to insert photographs into a table, next to the related statement. Is it possible to insert a photograph into the table on an iPad as I obviously don't have the 'command' button that others are using. If this is possible I want to be able to insert the picture as a predefined size?

    Hi,
    Yes, you can do this by using the Word Edit Cell VI under Report Generation>>Word Specific>>Word Tables in your block diagram functions pallette.  After creating a table, you can edit specific cells and send the file path of the image saved on your computer to that specific cell.  I put together an example that I've attached here as well to help you out with this.
    Regards,
    Austin S.
    National Instruments
    Academic Field Engineer
    Attachments:
    RGTWordImageInTable.vi ‏14 KB

  • Inserting image in Table

    Hi friends,
    I want to insert photograph in student table. I choosed BLOB datatype, but i don't know how to insert the image in binary format. Please help me to do that.
    Thanks

    Take a look on Images from Oracle Over HTTP</b><br><br> hare krishna<br> Alok<br>

  • Insert image into table

    Please let me know how to insert images to table using SQLDeveloper?

    Some history...
    SQL Developer 1.2.1 actually does support loading BLOBs and it has an internal viewer that can display some, but not all, common extensions (e.g., jpeg images will display, but not flv - flash). The 1.2.1 UI is different than the 3.0/3.1 UI Jim describes in his blog post: double clicking on a BLOB cell in the Table Data tab causes it to display a "..." at the right-side of the cell. Clicking that takes you to the Edit Value dialog where Load/Save/View capability resides.
    External editor support was in place at least by 2.1, but large BLOBs seem rather slow to load. Improved performance and the current UI appeared at least by 3.0, including the Pencil icon and the hyperlinks.
    -Gary

Maybe you are looking for