BLOBs and Inserting Images

Hi,
I'm trying to insert an image into the database using a BLOB datatype. I'm using PHP right now to code everything. I was wondering if anybody has resolved any of the errors I've gotten, or knows how to insert images into the database. I don't have intermedia. Thanks...
$filename = "/u1/apache/docs/image.gif";
$binary_file = addslashes(fread(fopen($filename, "r"), filesize($filename)));
$sql_stmt .= "INSERT INTO mdi_err_image (err_id, err_image) VALUES ($err_id, '$binary_file')";
$stmt = ociParse($conn, $sql_stmt);
ociExecute($stmt);
ORA-00972: Identifier too long (when I pass in a larger gif file)
ORA-01465: invalid hex number error. (when I pass in a really small gif file)

Hi there,
I might know... But maybe your questions is not so clear... I don't know if I see what you want to do...
Do you want to have an image in a shape causing wrapping and apply a picture frame or so to it?
If so:
1. Make your shape and put text in it
2. Drop the image into iWeb
3. Being sure it is selected copy it
4. Go into your shape and paste your image into it
5. Open up the Inspector and make the image wrap
6. Again in the Inspector apply picture frames or whatever
Thus you apply picture frames when it already is in the shape, not before.
Regards,
Cédric

Similar Messages

  • How to create a table with datatype blob and insert a pdf file (ravi)

    how to create a table with datatype blob and insert a pdf file,
    give me the explain asap
    1.create the table?
    2.insert the pdffiles into tables?
    3.how to view the files?
    Thanks & Regards
    ravikumar.k
    Edited by: 895044 on Dec 5, 2011 2:55 AM

    895044 wrote:
    how to create a table with datatype blob and insert a pdf file,
    give me the explain asapPerhaps you should read...
    {message:id=9360002}
    especially point 2.
    We're not just sitting here waiting to answer your question as quickly as possible for you.

  • Insert Link and Insert Image broken in Chrome

    The Insert Link and Insert Image buttons have been broken in my Chrome for at least the last couple of days (latest version, 32.0.1700.72 m, Windows 7 64).  
    When you click one of the buttons, the overlay window appears with a title, but it is otherwise black with no contents.  (See screenshot below.)
    The buttons work fine in Firefox.  What hasn't helped: deleting cookies, clearing the browser cache, waiting for several minutes for their content to appear.

    Whtat are we supposed to Claudio? All descend on Adobe with  clubs and try to beat some sense into someone!
    The fact is the customer is no longer the prime concern. Most companies don't give a Rats behind (toned down to prevent censors action) about the customers. It's the almighty dollar. Screw as many customers as they can while they can and line their pockets with all the green backs  as they can while they can. Then if the cusomers leave so be they take their money and run.
    Customer use to have power, they would speak loud and frequently and get things  fixed. And what with people from other countries now owning US companies, That were brought up with different moral compasses. They have no concept of this thing of loyalty to customers. The customer can jump off a cliff and they will simply cheer them on while the do so.
    We have lost, the fight can't be won. It no use. So Pat and others are right.
    I've been trying for 15 years for adobe to fix the issue of having multiple Pdfs created from Office documents because the claim they can't figure out how MS does Page and section breaks. And the issue of Weblinks not being active when converted to PDF's Both on Mac's yet on PC's there is no issue. I quite this year after I received a down right nasty not from Adobe say they didn't have any interest in fixing the bugs and were not about to try. What it amounted was go take a flying leap.
    They have the ability. They have beenblaming Its apple because they don't do such and such , or Microsoft because they don't do so and such. On the Links issue Saying MS doesn't provided the necessary hooks in the mac version of Office. They do you can take a Word document created on a Mac and open a PC and create a PDF and the links will be active. You can Open a Word Document in Apple's pages and all links created in Office document will be there.  The argument has been proven several different ways to be a an outright bald-faced lie. The defect is squarely with the Mac version of Acrobat.
    So Pat and others are right. Just throw in that towel. Adobe support of its customers is now 10 times worse than intuit's which is supposed have the lowest reputation of any software compny that ever existed.

  • I have just downloaded Mac OS X 10.9 and Pages 5. When I open any pre-existing document in the new Pages the format is zoomed to 125%, the headers are out of position, the margins are changes, and inserted images are also relocated. What can I do?

    I have just downloaded Mac OS X 10.9 and Pages 5. When I open any pre-existing document in the new Pages the format is zoomed to 125%, the headers are out of position, the margins are changes, and inserted images are also relocated. What can I do?

    Have you tried resetting the SMC ?     >  Resetting the System Management Controller (SMC)

  • How to create table and insert images and audio files ...

    hello to all , i am doing my b.e cse .
    at current v r studing DB and pl/sql codes ....
    i just need to know simple way of code to insert images and audio files in a table .
    i tried some of these ,
    CREATE TABLE myTable(Document varbinary(max))
    INSERT INTO myTable(Document)
    SELECT * FROM
    OPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB)
    but not workiing
    it shows some errors.
    i use oracle 10g. thank u :) and also i tried using blob and bfile datatypes , table created but cannot insert values !
    ROBOK

    hello to all , i am doing my b.e cse .
    at current v r studing DB and pl/sql codes ....
    i just need to know simple way of code to insert images and audio files in a table .
    i tried some of these ,
    CREATE TABLE myTable(Document varbinary(max))
    INSERT INTO myTable(Document)
    SELECT * FROM
    OPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB)
    but not workiing
    it shows some errors.
    i use oracle 10g. thank u :) and also i tried using blob and bfile datatypes , table created but cannot insert values !
    ROBOK

  • Inserting images in divtags

    Have 2 adjacent divtags one above the other with zero margin
    between. I click inside top one and insert image. Then try to click
    inside lower one to insert another image but cursor does not
    appear. I can select the div by clicking its border but can't
    select inside of it to get a cursor.

    Can you place your cursor within the DIV in Code View, and
    then insert your
    image?
    <DIV>|</DIV>
    "farleysan" <[email protected]> wrote in
    message
    news:fj29uc$h4l$[email protected]..
    > Have 2 adjacent divtags one above the other with zero
    margin between. I
    > click
    > inside top one and insert image. Then try to click
    inside lower one to
    > insert
    > another image but cursor does not appear. I can select
    the div by clicking
    > its
    > border but can't select inside of it to get a cursor.
    >

  • Inserting Images in Database

    Hi,
    I am using forms6 and database is 8.0.5. I have images stored in a folder say c:\images\. I have a table for item master and the item code is same as the image name in the image folder. Eg : Item code -ABC123 so there is a image jpeg format by the name ABC123. All the records are created in item master.
    Now if the user puts 10 images in this folder i want to read all this images and insert it in item master against this item code. Now i want to know the sql for this
    1>Reading sequentially all the images from this folder
    2>By the image file name read the itemcode from the item master and insert image in that record. I am using Long raw for storing the images.
    Thanks in advance.

    Hi,
    I managed reading the images from the folder and but just stuck up with the problem.
    Test -1
    I declared a variable var_abc long raw.
    read_image_file(v_filename,'ANY',var_abc);
    update item_master set item_pict = var_abc where item_code = var_item;
    Here it gives error at runtime on read_image_file for var_abc
    Test-2
    I created a nondatabase block and create a column txt_image with type as image.
    read_image_file(v_filename,'ANY',:txt_image);
    update item_master set item_pict = :txt_image where item_code = var_item;
    Here it gives error at compilation on item_pict =:txt_image
    Anyone can help me out where i am making mistake ?.

  • Help with Lightbox and adding images

    Tutorials show me that I should select the blue icon and insert images.
    In the tutorial I see this OPTIONS panel then the add images option.
    But when I click the blue button, in every template and new muse document I've tried.
    I see this - Composition options.       Do I have a preference or something selection wrong?
    I have tried pasting the photo inside but have a large number of images and there has to be an easier way that I am missing.
    Thank you.
    Malanda

    Hello,
    The add images option comes up when you use Slideshow Widgets instead of Composition Widgets.
    Regards,
    Sachin

  • Convert inserted images from MSWord to PDF?

    I have Acrobat 9 installed on two computers.  My desktop Acrobat will convert MSWord text and inserted images into PDF files.  My laptop Acrobat will convert identical MSWord text but not images into PDF - text appears as if no image was present (no wrap).  I have checked Preferences and JPG appears OK.  Same result whether using Acrobat's Create PDF from File, or MSWord's Acrobat tab.  What should I do to fix Acrobat 9 on my laptop?  Both computers on Windows 7 64-bit.

    Thanks to both answers above - it's a MSWord issue, not Acrobat.  No inserts (images, text box, charts, etc) will print to any destination (printer or PDF). 
    I have initiated correspondence with the MS forum, but if either of you know how to "configure Word' to print images" your advice would be welcome.  I have searched Word options and find no button to enable/disable printing of inserted images.
    Best regards,
    Carlo

  • 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 Image into a BLOB column in Oracle9i

    Hi,
    I am unable to insert image into a BLOB column. I am using Forms 6i REL 2 and Oracle 9i. But I could do it on Oracle 8i with same Forms version.
    Same thing is true for CLOB in 9i.
    Would you please try with this code?
    TABLE
    Create table x
    (Id number,
    Name CLOB,
    Pict BLOB);
    WHEN-BUTTON-PRESSED trigge
    declare
         x varchar2(265);
    begin
         x := get_file_name;
         read_image_file (x, 'GIF', 'picture.pict');
    end;
    Take care,
    Tarek

    Forms 9i and Oracle 9i work fine together for this case.

  • Inserting image in richtexteditor and text

    HI all,
       I am new to Flex 3. I was creating AIR application. I want to insert image in to richtexteditor and text control. I tried adding <img> tag to html source and added htmlText to richtexteditor and text control, but its not considering img tag.
       So is there way I can include image(animated GIF) in to richtexteditor and text control?
    Thanks,
    John

    create a default base block on the table with the BLOB.
    Change the BLOB item to an image item.
    Use the read_image_file built in to load images to the image item. (see online help).
    That should do it.

  • Upload and Resize Image not inserting filename in database

    I have a form that I created using the insert record form wizard. One of the fields is a file field and my form enctype is set to multipart/form-data. I then used the upload and resize image behavior and set the parameters. When testing the form the file uploads to the correct directory but no entry is made into the database for that particular field. The other fields are entered into the database just fine. If it helps, here is the code generated before the  tag:
    <br />
    <br /><?php require_once('../../Connections/test.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('../../includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('../../includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("../../");<br /><br />// Make unified connection variable<br />$conn_test = new KT_connection($test, $database_test);<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />//start Trigger_ImageUpload trigger<br />//remove this line if you want to edit the code by hand <br />function Trigger_ImageUpload(&$tNG) {<br />  $uploadObj = new tNG_ImageUpload($tNG);<br />  $uploadObj->setFormFieldName("picture");<br />  $uploadObj->setDbFieldName("picture");<br />  $uploadObj->setFolder("../images/");<br />  $uploadObj->setResize("true", 120, 0);<br />  $uploadObj->setMaxSize(1500);<br />  $uploadObj->setAllowedExtensions("gif, jpg, jpe, jpeg, png, bmp");<br />  $uploadObj->setRename("auto");<br />  return $uploadObj->Execute();<br />}<br />//end Trigger_ImageUpload trigger<br /><br />// Make an insert transaction instance<br />$ins_team = new tNG_insert($conn_test);<br />$tNGs->addTransaction($ins_team);<br />// Register triggers<br />$ins_team->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$ins_team->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$ins_team->registerTrigger("END", "Trigger_Default_Redirect", 99, "../team.php");<br />$ins_team->registerTrigger("AFTER", "Trigger_ImageUpload", 97);<br />// Add columns<br />$ins_team->setTable("team");<br />$ins_team->addColumn("id", "NUMERIC_TYPE", "POST", "id");<br />$ins_team->addColumn("sort", "NUMERIC_TYPE", "POST", "sort");<br />$ins_team->addColumn("name", "STRING_TYPE", "POST", "name");<br />$ins_team->addColumn("title", "STRING_TYPE", "POST", "title");<br />$ins_team->addColumn("description", "STRING_TYPE", "POST", "description");<br />$ins_team->addColumn("picture", "FILE_TYPE", "FILES", "picture");<br />$ins_team->setPrimaryKey("id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rsteam = $tNGs->getRecordset("team");<br />$row_rsteam = mysql_fetch_assoc($rsteam);<br />$totalRows_rsteam = mysql_num_rows($rsteam);<br />?>

    If the reason is about memory, warning message should be happened when upload the image, because "show thumbnail" means resize at second time, how come you failed to resize the picture that system let it upload succeed at the first time by the same resize process?
    upload procedure
    a.jpg: 2722x1814, 1.2mb
    upload condition: fixed width 330px, 1.5mb
    "upload and resize" a.jpg -> file upload -> "resize engine" -> passed (but not work and no warning message)
    "show thumbnail" a.jpg -> "resize engine" -> failed (not enough memory)
    it doesn't make sense.
    and you miss an important key point, I upload the same picture myself, and resize work, so I said it happened at random, and that's why I am so worried.

  • How do I place an image and insert a different photo for the "mouse down" state?

    I have placed an image within an accordian widget and when I select the "mouse down" area in the states dialog box, i click "fill" in the toolbar and insert the photo i want to display when the image is clicked but this image is "covered up" by the originally placed image and is not seen in my states dialog box.
    I have done this before when i made rectangles and placed images in rectangles. But i soon realized that you cannot add alternative text to images in rectangles for some frustrating reason.
    How do I place and image and have a different image for the mouse down state?

    Hello,
    This effect can only be achieved when you use the images as a Rectangle Fill. And as you mentioned it above, you cannot add alternative text to images because it is added as a fill and not as a image.
    I would suggest you to post this as a feature request on our "Ideas for features in Adobe Muse" section of the forums : http://forums.adobe.com/community/muse/ideas
    Regards,
    Sachin

  • JTextPane and inserting/deleting image

    Hi,
    I have problems with my jtextpane. I am usign jtextpane do make simple richeditor.
    I can insert image, and no problem with inserting
    But after that, where content of jtextpane is saved and opened again, image is not able to delete...
    If is there any solution?
    Sorry for my broken English.

    Hi everyone,
    Does the image get saved when you serialize the document?
    What are you doing to serialize the document by using xml or by serializing it as an object or by using the rtf kit
    Richard West

Maybe you are looking for

  • Removing a quote sign from data transfer

    Is it possible to remove specific characters while transferring data from the PSA table to subsequent data targets? Maybe there a BW formula that enables this to happen? In my case, we have created a generic extractor to load statistical data from a

  • High Sea Purchases

    Hi, How we have to perform highsea purchase (inclusion of Import duties) in domestic scenario. Regards Mohan

  • AkAttachmentListCO.java

    I am trying to modify the conroller AkAttachmentListCO , but when i decompile the class file to java and try to compile it it gives me errors because of code like below created by java decompiler .. How to get the correct java code in these situation

  • Dynamic IP/Tacacs+ problem

    Hi, I have several sites using Cisco 877 routers connecting to the Internet through a broadband connection. The ISP is giving us a dynamic ip to the routers. I want to reach an ACS server (using Dynamic DNS) to authenticate users to have access to th

  • DW CS4 keeps duplicating recordset code after opening/editing a recordset

    Hi all, I'm wasting lots of time editing and re-editing recordsets in DW CS4 using the PHP server model. After opening a recordset an making changes, DW will break the recordset code duplicating it. This appen even if I open and suddendly close the r